mysql Insert
| From: | Brad Harriger | Date: | Wed, 07 Nov 2001 14:14:31 +0000 |
| Subject: | mysql Insert | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14090@lists.php.net to get a copy of this message | ||
When I execute the line
$result = mysql_db_query("MyDBTest","INSERT INTO Test VALUES($name)");
I receive the following error
Unknown column 'Jeff' in 'field list'
I'm not sure why I'm getting the error. I've verified that the
parameters in the mysql statement are correct. There is only one column
in the table. "Jeff" (without the quotes) is the value of $name when it
reaches the statement. Any help would be appreciated.
Thanks in advance,
Brad