Disclaimer: I'm working with old code that uses mysql
functions instead of mysqli
functions. I am not in a position to retrofit the code with the updated functionality and have to work within the old, depredated functions. I am aware this is not best practice.
We are trying to use a multiline INSERT
but then need to pull out the mysql_insert_id()
for each inserted row. Is this possible?
Example:
INSERT INTO banner (date, count) VALUES ('2013-06-06', 1), ('2013-06-07', 1), ('2013-06-08', 2);
How can I then grab the insert_id for each line?