Enclosing fields in MySQL queries with `" or '

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are there any advantages/disadvantages to using and of the ` " or '
punctuation symbols in MySQL queries? I usually only put them around
variables (after being sanitized, of course):

INSERT INTO places (country, city) VALUES ('$country', '$city')

Any thoughts on the issue? Thanks.

Dotan Cohen

http://lyricslist.com/lyrics/artist_albums/135/creed.html
http://what-is-what.com/what_is/adsl.html

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux