-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
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
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