note 7666 added to mysql_db_query
| From: | nevrar at mukau dot net | Date: | Thu, 10 Aug 2000 22:26:14 +0000 |
| Subject: | note 7666 added to mysql_db_query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-981@lists.php.net to get a copy of this message | ||
A note about termination your $sql string variable...
This doesn't work:
$sql = "SELECT *
FROM Whatever";
";
For some reason you need to put that "; on the same line as the last line of the sql statement.
ie.
$sql = "SELECT *
FROM whatever ";";
http://www.php.net/manual/function.mysql-db-query.php