Well, 'Yes' and 'No', siwis...
Yes, you could save server time by changing your code to be like my example above...
but, 'No' not like your example.
The whole idea is to have a single operation. Therefore, you throw out the "foreach()" stuff entirely.
Notice how I build a single comma deliminated string from the array with 'implode'. . .
if (count($zap) > 0){
$delete = implode($zap, ",");
$sql = "delete from " . $cTable . " where id in (" . $delete . ")";
mysql_query("$sql", $db);
}
. . . then I use ' where id in (" . $delete .")"
You could use:
$delete = implode($remove_address_arr,",");
then substitute your 'address' field for my 'id' field.
Other than that, the code would be the same as I've shown.
If you have more questions, feel free to write me at hank@compusolver.com That way we won't bore everyone else.