theming result page with pager
sujith7c - July 2, 2008 - 05:04
Hi all
I am struggling with a problem ,I built a custom search module
result page theming using theme('table'....)
i have limit 5 rows in the result page with "Next" "Previous" , link on the footer Any one help me
my code is
$header=array(t('Name'),t('Age'),t('Religion'),t('Caste'),t('Location'),t('details'),t('Photo'));
$search_result = theme('table',$header,$newdata);
return $search_result;
// here is mysql query
$result = db_query($sqlquery);
$rows[]=array($data->field_name_value,$data->field_age_value,$data->religion,
$data->caste,$data->location,l("More","node/$data->nid",NULL,NULL,NULL,false,true)
,customsearch_img($data->imgloc));
Look forward to you

I have to limit 5 rows in a
I have to limit 5 rows in a result page
use pager query
Hi,
Try this,
http://drupal.org/node/221691
Kuldip zala