Single Quotes And Double Quotes ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Single Quotes And Double Quotes ?

    i need a little help here..
    this is call from sql
    Code:
    $pr = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM f_rub"));
    $po = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM f_odg"));
    and this line
    Code:
    echo "<a href=\"tabla.php?dela=browsing&amp;seja=$seja\">Tabla ($pr[0]|$po[0])</a>";
    works fine...


    but i&#39;d like to write that with single quotes
    like this
    Code:
    echo &#39;[url="tabla.php?dela=browsing&amp;seja=&#39;.$seja.&#39;"]Tabla ($pr[0]|$po[0])[/url]&#39;;
    and here is the problem
    cos i get displayed like this
    Code:
    Tabla ($pr[0]|$po[0])
    instead this
    Code:
    Tabla 5|10
    so how should i write this part
    Code:
    Tabla ($pr[0]|$po[0])
    to get proper echo, using single quotes??
    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

    #2
    seems strange why that doesnt work .......
    have you tried it on a string
    $string = &#39;Tabla ($pr[0]|$po[0])&#39;;
    echo $string
    dunno if that would help
    or maybe like this:
    echo &#39;Tabla (&#39;.$pr[0].&#39;|&#39;.$po[0].&#39;)&#39;;


    ?????????????????????????????????

    Comment


      #3
      <div class='quotetop'>QUOTE (something else @ Dec 27 2008, 07:01 PM) <{POST_SNAPBACK}></div>this one works fine
      thanks
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        fooking heck i was pissed out of my head when i wrote that last night lol
        suprised i got it right lol

        Comment

        Working...
        X