I have two queries, as following:
SELECT SQL_CALC_FOUND_ROWS Id, Name FROM my_table WHERE Name LIKE \'%prashant%\' LIMIT 0, 10; SELECT FOUND_ROWS(); <
SELECT SQL_CALC_FOUND_ROWS Id, Name FROM my_table WHERE Name LIKE \'%prashant%\' LIMIT 0, 10; SELECT FOUND_ROWS();
Like this:
$result1 = mysql_query($query1); $result2 = mysql_query($query2); // do something with the 2 result sets... if ($result1) mysql_free_result($result1); if ($result2) mysql_free_result($result2);