note 26979 added to function.mysql-db-query

From: Date: Tue, 19 Nov 2002 12:32:17 +0000
Subject: note 26979 added to function.mysql-db-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-39694@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 -- http://www.php.net/manual/en/function.mysql-db-query.php http://master.php.net/manage/user-notes.php?action=edit+26979 http://master.php.net/manage/user-notes.php?action=delete+26979 http://master.php.net/manage/user-notes.php?action=reject+26979

« previous php.notes (#39694) next »