NYCPHP Meetup

NYPHP.org

[nycphp-talk] terminating semi-colon in mysql_query

Michael Southwell michael.southwell at nyphp.org
Wed May 11 14:59:31 EDT 2005


Despite the clear injunction at http://php.net/mysql_query that "The
query string should not end with a semicolon," it appears that there
is no problem doing it.  This line

$query="SELECT `address` FROM `units` WHERE `unitid`=106;";

is working just fine for me (on MySQL 3.23.51 and 4.0.22). Does
anybody have ideas about what might be going on here? If the
injunction is not enforced, why was it originally issued? Or am I
overlooking something obvious?


Michael Southwell, Vice President for Education
New York PHP
http://nyphp.org/twoday - In-depth PHP Training Courses




More information about the talk mailing list