Is it possible to insert a row and get the values inserted in the same query?
Something like...
INSERT INTO `items` (`item`, `number`, `state`) (SEL
if you are using php then
instead of this you can use
mysql_insert_id();
which will give the id of last inserted record.
The other data will be same as inserted. Only id will change which you can get by mysql_insert_id()
mysql_insert_id()
So you do not need to run second query.