Will this code loop through the array and delete everything from each of the tables for a particular user.
$tables = array (
"user",
"user_info",
"foo",
"bar"
);
foreach ($tables as $value) {
DELETE * FROM $value WHERE user=$username
echo 'user deleted from '.$value;
}
Also is there a better way to delete all user info across multiple tables? This seems as if it could be quite inefficient.