Re: Query Executes in MySQL Command Line, Not From PHP.
| From: | Marco Tabini | Date: | Fri, 15 Nov 2002 20:51:48 +0000 |
| Subject: | Re: Query Executes in MySQL Command Line, Not From PHP. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23402@lists.php.net to get a copy of this message | ||
I don't think you can have column names that start with a number. Are
you sure you didn't mean to write:
$sql_element_low = "UPDATE $table SET medialow=NULL WHERE
".$table."contentID=".$_POST["id"]."";
Otherwise, try adding a simple
die (mysql_error());
after the offending line and see what PHP tells you.
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!