Merely due to the sake of being efficient I would like to hear some advises from the PHP expers here. (Actually this question goes out all developers that mess with database connections on a regular basis)
Assume you have one personId and this id has multiple numbers. You have a table with columns pID,nums
From the php side you retrieve these numbers in an array. Now my question comes to place. Do you do something like;
for($i=0;$i<count($arr);$i++)
{
//Call the insert query over and over again
}
Or there is obviously a better solution?