RE: [PHP-DB] insert data
| From: | John W. Holmes | Date: | Sun, 06 Apr 2003 17:35:28 +0000 |
| Subject: | RE: [PHP-DB] insert data | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26867@lists.php.net to get a copy of this message | ||
> I'm having trouble creating an insert form...the problem is that I
> don't have only one table, but 5 or 6...so I should insert in ex.
> $table where $ID.
> also the form needs dynamically generate in relation to the table I
> choose...I mean it depends on how many column a table has that the
form
> has the correspondent number of field...the Id and created are auto(so
> no field).
Each database has a way to get the auto created number. With MySQL, it's
mysql_insert_id().
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/