I have some code that deletes records from the database, in a loop.
However its prety inificient as it makes a seperate database call in every loop whcih is slow.
Is their a more efficient way of doing that? It is posible to delete multiple records in the same database querie?PHP Code:
for ($i=0; $i<count($idarray); $i++)
db_query("delete from clicks where id='$idarray[$i]'");