Re: [PHP-DB] auto_increment and INSERT INTO

2006-01-21 Thread Ron Piggott (PHP)
That is the function I was looking for. Thanks. Ron On Sat, 2006-01-21 at 23:47 -0500, [EMAIL PROTECTED] wrote: > Try: > >mysql_query("INSERT INTO table VALUES ('$variable_1', '$variable_2');"); > $auto_increment_variable = mysql_insert_id(); > ?> > > > -TG > > > > > = = = Original

Re: [PHP-DB] auto_increment and INSERT INTO

2006-01-21 Thread David Robley
On Sun, 22 Jan 2006 15:08, Ron Piggott (PHP) wrote: > I have various tables where a column is set to auto_increment in my > table structure. I have been using the following INSERT query format: > > INSERT INTO table VALUES ('$auto_increment_variable','$variable_1', > '$variable_2') > > and then in