How to find the last ID?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there everyone,

I'm creating a new entry using the following:

mysql_query ("INSERT INTO agents (agent_name) 
               VALUES ('$agentname')

but I need to find out the ID value it created, how can I do this easily?

Thanks

Chris

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux