Yes, there is, strings should *always* be quoted!

See: http://www.php.net/manual/en/language.types.array.php

it's under do's and don'ts ..

bvr.

Mike Eheler wrote:

 > $result = mysql_query("select user from users where id =
 > $_SESSION[id]", $db);
 >
 > No need to quote the key name in a string.






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to