I am getting this error
Error: 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 '(int) , (int)' at line 2
I followed up this answer on SO
I am getting base and limit as string , i want to convert them into int. This is my code
$category = $_POST['category'];
$base= $_POST['base'];
$limit= $_POST['limit'];
$sql = "SELECT id, name, url
FROM OBJECTS where CATEGORY='$category' limit (int)$base , (int)$limit";