note 29511 added to function.mysql-query

From: Date: Sun, 16 Feb 2003 00:41:40 +0000
Subject: note 29511 added to function.mysql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-44036@lists.php.net to get a copy of this message
Is there another way to insert information into a table from an HTML form, without converting all the $_POST[variables] into regular $variables? An example is below: $name = $_POST['name']; $query = "INSERT INTO table (name) VALUES ('$name')"; mysql_query(query); -- http://www.php.net/manual/en/function.mysql-query.php http://master.php.net/manage/user-notes.php?action=edit+29511 http://master.php.net/manage/user-notes.php?action=delete+29511 http://master.php.net/manage/user-notes.php?action=reject+29511

« previous php.notes (#44036) next »