View Full Version : array

04-06-2007, 01:31 PM
see i have two tables.technology and category.In technology i have the fields id(auto_increment primary) and name. In category i have id(auto_increment primary),categoryname and categoryid.

In the first table i insert the name and the value of the id is auto_increment.
now am going to insert the categoryname in the category table by using
technology.id=category.categoryid.(the name in the technology table ). how can i use the array .

04-06-2007, 06:47 PM
I don't know what an array has to do with this, but you can use mysql_insert_id() to find out what the auto-increment value was that just got inserted.