MySQL Forums
Forum List  »  Turkish

Re: last insert id
Posted by: erhan baris
Date: March 21, 2008 04:15AM

$tablo = @mysql_query("select last_insert_id() as son");
$a = mysql_fetch_assoc($tablo);
echo $a['son'];

bu kod ile en son eklediğin bilginin numarasını alırsın.

Options: ReplyQuote


Subject
Views
Written By
Posted
86796
December 23, 2007 12:19PM
18055
January 27, 2008 04:53AM
Re: last insert id
14003
March 21, 2008 04:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.