note 29511 rejected from function.mysql-query by rioter
| From: | rioter@php.net | Date: | Sun, 16 Feb 2003 02:37:03 +0000 |
| Subject: | note 29511 rejected from function.mysql-query by rioter | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-44037@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);