RE: [PHP-DB] Hi, simple question

2003-07-01 Thread Nick Pappas
-Original Message- From: Patrik Fomin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:04 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Hi, simple question Hi, im adding a post to the database, is there any way to retrive back the ID for the post that i just created? the id is a

Re: [PHP-DB] Hi, simple question

2003-07-01 Thread Oscar Rylin
see mysql_insert_id($link_identifier) -- rylin Patrik Fomin wrote: Hi, im adding a post to the database, is there any way to retrive back the ID for the post that i just created? the id is auto_increment and primary key. like $sql = "insert into test (namn, www) values('test', 'test.com')"; my

[PHP-DB] Hi, simple question

2003-07-01 Thread Patrik Fomin
Hi, im adding a post to the database, is there any way to retrive back the ID for the post that i just created? the id is auto_increment and primary key. like $sql = "insert into test (namn, www) values('test', 'test.com')"; mysql_query($sql); $row = mysql_get_post("id"); ? the only way i coul