Hello,
Ok ive been able to get the code working. Although i have run in to a problem. If any one can take a look and maybe let me know what im doing wrong that`d be great. Problem is that i have the results printing to the page in lots of 5... but each result is the same. Last line in the data file.
Any ways heres the url
and the code below.
Thanks guys,
wazza
--------start---------
@results = ($invoiceno,$contactname,$contactemail,$company,$address,$state,$city,$zipcode,$country,$title,$description,$category,$emailcategory,$password,$url,$recipurl,$signupurl,$date);
$number_of_sites = @results;
$result_count = $number_of_sites;
$pgsz = 5;
if ($result_count != 0) {
$pagecount = int($result_count / $pgsz);
if (($pagecount * $pgsz) != $result_count) {
$pagecount++;
}
}
if (!$A::rqpg) {
$rqpg = 1;
}
else {
$rqpg = $A::rqpg;
}
$firstresult = (($rqpg - 1) * $pgsz) + 1;
$lastresult = $firstresult + $pgsz - 1;
if ($lastresult > $result_count) {
$lastresult = $result_count;
}
$prev_page = $rqpg - 1;
$next_page = $rqpg + 1;
if ($rqpg == 1) {
$prev_link =