RE: [PHP-DB] insert data
| From: | John W. Holmes | Date: | Sun, 06 Apr 2003 17:56:16 +0000 |
| Subject: | RE: [PHP-DB] insert data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142602@lists.php.net to get a copy of this message | ||
There's no way of knowing what your problem is within seeing your code.
Please keep the questions on the list, also...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -----Original Message-----
> From: massimo [mailto:sub0@speakeasy.net]
> Sent: Sunday, April 06, 2003 1:53 PM
> To: holmes072000@charter.net
> Subject: Re: [PHP-DB] insert data
>
> hey,
>
> if look at this maybe it's clearer..
> see I managed to generate the insert form in relation to the table I
> choose but I'm a bit confused ho w to pass the values from the form to
> the table below....so if you entry data and click insert, a new record
> should appear in the table.
> also the id and created shouldn't have the field!!!!
>
> thanks for your help.
>
> sub
>
> On Sunday, April 6, 2003, at 12:35 PM, John W. Holmes wrote:
>
> >> 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/
> >
> >
> >