PHPMyAdmin: [PHP] From: Newman, using " and ' or ` in My Sql

From: Date: Sat, 16 Mar 2002 19:00:09 +0000
Subject: PHPMyAdmin: [PHP] From: Newman, using " and ' or ` in My Sql
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-88766@lists.php.net to get a copy of this message
> The standard quote (') should be used to delimit string literals in MYSQL > statements. Use it to surround strings you're inserting into or comparing > against VARCHARs, CHARs, TEXTs, etc. > $sql = "UPDATE mytable SET name='Best Table Of All' WHERE id=3"; That is ok if you call MySQL in your .php. But in PHPMyAdmin, it seems preferable to use `.

« previous php.general (#88766) next »