note 38653 added to function.mysql-query
| From: | jmuelleratsmartbonddotcom at rn2 dot php dot net | Date: | Thu, 01 Jan 2004 17:29:09 +0000 |
| Subject: | note 38653 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62749@lists.php.net to get a copy of this message | ||
I probably am not the best person to answer this, but it looks like you should take out the quotes
around the table name product. For example:
mysql_query("DELETE FROM product where nome='$product_name'");
...as well, do not know if you meant spell the variable name as "nome" or if you really
want it to be "name" in the where clause, as such:
mysql_query("DELETE FROM product where name='$product_name'");
See if that works.
- JM
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38653
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38653&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38653&report=yes
Search -- http://master.php.net/manage/user-notes.php