Forum Moderators: coopster
if($_POST['delete']) {
foreach($_POST as $job_id) {
mysql_query("DELETE FROM job_tb,blockBook,blockBook2
WHERE job_tb.job_id='$job_id' OR
blockBook.job_id= '$job_id' OR
blockBook2.job_id= '$job_id'");
if (mysql_affected_rows() > 0) {
print "<font color=red size=2>Job No. = $Job_id has been deleted</font><p>";
}
}
} to create a temp table
mysql> CREATE TEMPORARY TABLE whatever (
etc….
Dropping the temp
by default MySQL will delete it when the connection is closed
but if you need to drop it earlier use the drop command