I have this script that loops through a bunch of queries, I have shown an example below. When i run it I get this error "mysql_free_result(): supplied argument is not a valid MySQL result resource."
How can this be fixed?
$Queries[] = "UPDATE Table SET Status = 'Y'";
$Queries[] = "DELETE FROM Table WHERE Status = 'N'";
for ($qc=0, $qs=count($Queries); $qc<$qs; $qc++) {
$SQLResult = mysql_query($Queries[$qc], $Connection);
mysql_free_result($SQLResult);
}
unset($Queries);