Single Quotes And Double Quotes ?

Started on the old forum in December 2008 · view the original in the archive · old links redirect here

3 replies · 810 views · started 17 years ago · 1 min read

2 participants
metulj Super moderator Principal · 1,726 posts #1

i need a little help here.. this is call from sql

$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

echo "<a href=\"tabla.php?dela=browsing&seja=$seja\">Tabla ($pr[0]|$po[0])</a>";

works fine...

but i'd like to write that with single quotes like this

echo '[url="tabla.php?dela=browsing&seja='.$seja.'"]Tabla ($pr[0]|$po[0])[/url]';

and here is the problem cos i get displayed like this

Tabla ($pr[0]|$po[0])

instead this

Tabla 5|10

so how should i write this part

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ノ刀ノイリ!

something else Fellow · 2,296 posts #2

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

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

metulj Super moderator Principal · 1,726 posts #3

QUOTE (something else @ Dec 27 2008, 07:01 PM) <{POST_SNAPBACK}>

echo 'Tabla ('.$pr[0].'|'.$po[0].')';

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ノ刀ノイリ!

something else Fellow · 2,296 posts #4

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close