Is it possible to have 2 queries in one mysql_query call? I can't do the
"select * from A;delete from B;", anyone knows the answer?
Simon
Chris wrote:
Try this, just maybe:
$sql="SELECT * FROM gallery LIMIT {$next_start}, 12";
In case the comma is confusing the PHP parser.
BTW, please tell me you're not just inserting a user-controlled form variable straight into your SQL? eg. What happens if the user set $next_start to :
"0; DELETE FROM gallery;"
Chris