inserting mysql data using php array???

From: Date: Tue, 27 Nov 2001 15:45:04 +0000
Subject: inserting mysql data using php array???
Groups: php.db 
Request: Send a blank email to php-db+get-14607@lists.php.net to get a copy of this message
Hi I am running Apache 1.3.20 with MySQL 3.23.41, and PHP 4.0.6, on Linux Mandrake 8.1. I am trying to access a MySQL database from a PHP script. I have a html form, that takes input in an array (ie. name[0], name[1], name[2], name[3], these fields represent first_name, middle_initial, last_name, and suffix in the database). What I would really like to do is, take this array of data and insert each element in the corresponding column, in the database. Is it possible to insert each element of the array into the database, using an array, instead of typing out each value? -- Thanks

« previous php.db (#14607) next »