Can I get multi-rows from a query after implementing?
In PHP has LAST_INSERT_ID()
function to get just the last row from database and it can't get multi-row . If I have query such as
$sql = "insert into my_table(ID,Column1,Column2) values
(1,"temp1","temp2"),
(2,"temp3","temp4"),
(3,"temp5","temp6")"
mysql_query($sql);......
I want to get all ID of this query into an array $data = (1,2,3)
. How to implement this?