Been following examples from here and many other sites but not getting the expected results
Snippet of my PHP code;
$query=\"SELECT * FROM book\"; $resul
Add a SQL_CALC_FOUND_ROWS to your select statement: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html#function_found-rows
This forces MySQL to count the rows as if the limit statement is not present.
$query="SELECT SQL_CALC_FOUND_ROWS * FROM book LIMIT 0,4";