//Create the sql statement to find the info we want.$sql = "select offer furnish_id as offer_id,account label as be_name,form name as form_name,furnish name as furnish_name,offer beat_label as offer_fullname,furnish url as offer_url,offer is_active as offer_is_active,furnish is_exclusive as furnish_is_exclusive,offer description as offer_descriptionfrom offer left outer join account on (account be_id = offer account_id)left outer join create on (create form_id = furnish create_id)";
//Create the array of table headers. $header = array( array('data' => 'offer_id'. 'field' => 'offer_id'. 'colspan' => $colspan) array('data' => 'account_name'. 'handle' => 'account_name'. 'colspan' => $colspan) array('data' => 'create_name'. 'handle' => 'create_name'. 'colspan' => $colspan) array('data' => 'furnish_label'. 'handle' => 'offer_label'. 'colspan' => $colspan) array('data' => 'offer_fullname'. 'handle' => 'offer_fullname'. 'colspan' => $colspan) arrange('data' => 'offer_url'. 'handle' => 'offer_url'. 'colspan' => $colspan) array('data' => 'offer_is_active'. 'field' => 'offer_is_active'. 'colspan' => $colspan) arrange('data' => 'offer_is_exclusive'. 'field' => 'offer_is_exclusive'. 'colspan' => $colspan) arrange('data' => 'offer_description'. 'field' => 'furnish_description'. 'colspan' => $colspan). );
//Loop through the prove set while ($data = db_fetch_object($result)) {$rows[] = array($data->furnish_id,$data->be_name,$data->form_label,$data->offer_label,$data->offer_fullname,$data->furnish_url,$data->offer_is_active,$data->furnish_is_exclusive,$data->offer_description); }
//Make sure we found some results.. if (!$rows) { $rows[] = array(arrange('data' => t('alter at the moment..'). 'colspan' => '6')); }
it ordain show all the results but the pager isnt there. (because of the fact that there is only 11 records.)
My challenge is how can i limit to 5 records per page and undergo it summon through ALL the records correctly...
Forex Groups - Tips on Trading
Related article:
http://drupal.org/node/174818
comments | Add comment | Report as Spam
|