I am having problems getting the pager to work correctly. Heres my code...
function viewoffers_page()
{
//Go to the unl db.
db_set_active('unl');
//Create the sql statement to find the info we want.
$sql = "select offer.offer_id as offer_id,
account.name as account_name,
form.name as form_name,
offer.name as offer_name,
offer.full_name as offer_fullname,
offer.url as offer_url,
offer.is_active as offer_is_active,
offer.is_exclusive as offer_is_exclusive,
offer.description as offer_description
from offer left outer join account on (account.account_id = offer.account_id)
left outer join form on (form.form_id = offer.form_id)";
//Set the colspan attribute.
$colspan = 1;
//Create the array of table headers.
$header = array(
array('data' => 'offer_id', 'field' => 'offer_id', 'colspan' => $colspan),
array('data' => 'account_name', 'field' => 'account_name', 'colspan' => $colspan),
array('data' => 'form_name', 'field' => 'form_name', 'colspan' => $colspan),
array('data' => 'offer_name', 'field' => 'offer_name', 'colspan' => $colspan),
array('data' => 'offer_fullname', 'field' => 'offer_fullname', 'colspan' => $colspan),
array('data' => 'offer_url', 'field' => 'offer_url', 'colspan' => $colspan),