That is great but I have another problem. I have it so that it shows 25 names and emails per page so there are next and previous links.
I need it so that they span over the two pages in order,
sorry about this guys but i really have no clue
Here is the code that I have.
if (!isset($view)) {
$view=0;
}
for($i = $view; $count > $i; $i++) {
$h = explode("|",$handle[$i]);
$name = stripslashes($h[0]);
$msn = stripslashes($h[1]);
$contentarray[] = array('name' => $name, 'mail' => $msn);
$sorter[] = $name;
}
array_multisort($sorter, SORT_ASC,SORT_STRING, $contentarray);
for($n = 0; $row = $contentarray[$n]; $n++) {
$show = "<tr>\n";
$show .= "<td bgcolor=\"#104665\" class=\"text\">$row[name]</td>\n";
$show .= "<td bgcolor=\"#104665\" class=\"text\"><a href=\"mailto:$row[mail]\">$row[mail]</a></td>\n";
$show .= "</tr>\n";
echo $show;
if($i == $view+25) {
break;
}
}
echo "</table>";
$prev = $view-25;
$next = $view+25;
Thanks guys, appreciated very much