Still can't make tables temporary using the keyword TEMPORARY (no one have any ideas why not?), so want to drop the the tables and the end of the function.
Where does the DROP table go here? Any help appreciated. PHP...
// now dump all data into tempst.
}
$get_results_sql=" SELECT * from ".$temptable2." group by photoid";
if ($s) { $get_results_sql=$get_results_sql." limit $s, 12"; } else { $get_results_sql=$get_results_sql." limit 0,12"; }
$get_results=DBqueryArr($get_results_sql);
return($get_results);
}
I need to drop tables before return...
DBquery("DROP TABLE ".$temptable1); // drop temptable1
DBquery("DROP TABLE ".$temptable2); // drop temptable2
Adding the above before returns no results, and not executed after return.