Hello, I am having an issue with an sql query. Here is my code:When I run that I get this error:PHP Code:$get = mysql_query("SELECT * FROM `teams` ORDER BY name ASC LIMIT $cur, $max") or die ("Error Getting Teams! \n<br />\n" .mysql_error());
When I take out the limit section or the order by section, it works. Any reason for this. ThanksCode:Error Getting Teams! 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 '' at line 1



Reply With Quote

Bookmarks