Enclosing fields in MySQL queries with `" or '

From: Date: Sun, 04 Mar 2007 15:35:15 +0000
Subject: Enclosing fields in MySQL queries with `" or '
Groups: php.general 
Request: Send a blank email to php-general+get-249805@lists.php.net to get a copy of this message
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

« previous php.general (#249805) next »