note 26979 deleted from function.mysql-db-query by tix
| From: | tix@php.net | Date: | Tue, 19 Nov 2002 13:13:50 +0000 |
| Subject: | note 26979 deleted from function.mysql-db-query by tix | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39696@lists.php.net to get a copy of this message | ||
I am trying to do a query in an MySQL DB like this:
$a = mysql_db_query("SELECT * FROM tabela WHERE id=1)
It work fine, but when I try to change the number 1 to a PHP variabel that came from a form, it
returns an error:
$a = mysql_db_query("SELECT * FROM tabela WHERE id=$id_form)
Can someone help me