Jump to content

Error in php/mysql


rswildy

Recommended Posts

the query is:

		$sql = "SELECT * FROM gallery WHERE category = " . $catName . " LIMIT {$limitStart} , {$limit}";		$sqlp = "SELECT * FROM gallery WHERE category = " . $catName . " LIMIT {$limitStartp} , {$limit}";

the error is:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 12 , 12' at line 1

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...