hello
$num=mysql_num_rows("select id from your_table");
$query=mysql_query("select id from your_table limit $num-1, $num");
$id=mysql_result......


hth
toto
  ----- Original Message ----- 
  From: edgardo catorce 
  To: [email protected] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; 
[email protected] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL 
PROTECTED] 
  Sent: Monday, October 23, 2006 4:13 AM
  Subject: [php_mysql] How to get last inserted ID in MYSQL table


  Good day again guys!
  May I know how to retrieve the last inserted
  autoincrement ID in a mysql table? Thanks alot!

  __________________________________________________
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 


   

[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php_mysql/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to