?

Log in

No account? Create an account
I just found out how to use the mysql_insert_id() function in PHP.… - Love Your Code [entries|archive|friends|userinfo]
Love Your Code

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Jul. 6th, 2006|03:20 pm]
Love Your Code

webdev_love

[lady_icedragon]
[Tags|, ]

I just found out how to use the mysql_insert_id() function in PHP.

It returns the auto_increment value for the last entry you inserted into a database, which becomes very handy when you need that value to reference an entry in another table to that one. Saves an entire query in between.

Today I am mostly having fun with constructing MySQL queries to access two tables simultaneously :)
linkReply