Dear all,,
I have a problem with searching and pagination...
For searching i use SQL_CALC_FOUND_ROWS and Inner Join .. the problem is that when i use the $limit variable in the end of the search query.. it is not working properly...
$limit='LIMIT'.($pageno-1)*$rows_per_page.','.$rows_per_page;
I am giving the query below..
$query_data=" SELECT SQL_CALC_FOUND_ROWS * FROM reg_personal inner join reg_english_level inner join reg_services inner join reg_status ON(reg_personal.personal_code=reg_english_level.english_code AND reg_english_level.english_code=reg_services.services_code AND reg_services.services_code=reg_status.status_code)WHERE $query_string $limit";
Thanks in advance..
Jino.