hi all
anyone know how can i update the last row in the table i try with LAST_INSERT_ID but dont work to me.
i try something like this
UPDATE table1 set item1='bar' WHERE id = LAST_INSERT_ID()
THX a lot
Moderators: macek, egami, gesf

toweter wrote:try it like that:
mysql_query("UPDATE table1 set item1='bar' WHERE id = ".LAST_INSERT_ID());

Users browsing this forum: No registered users and 1 guest