11-10-2007, 10:59 AM
|
#14 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
What bluesaga meant with the first part of his msg, was that instead of doing this:
PHP Code:
echo "<a href=\"something.php\">Yes</a>";
.. you can do this:
PHP Code:
echo "<a href='something.php'>Yes</a>";
But personally, I wouldn't use ", because it looks much sloppier, and it's more difficult to read the variables, etc..
I only use " in mysql querys:
PHP Code:
$szSql = mysql_query("SELECT * FROM `users` WHERE `name` = 'test'");
However, on a more serious note, you should never use a query like that.
Instead you should use sprintf.
|
|
|
|