ok theres the code
<?php...recordset
$totalmovie=$totalRows_SelectAll;
$pageNow=$selectvid->Fields('serie');
$movie_Array=array();
$counter=0;
while (!$SelectAll->EOF) {
$serie=$SelectAll->Fields('serie');
if ($serie==$pageNow){
$vid_array_num=$counter;
}
$movie_Array[$counter] = $serie;
$counter++;
$SelectAll->MoveNext();
}
if ($vid_array_num < 5){
$pagenext=$vid_array_num+1;
}else{
$pagenext=$vid_array_num;
}
?>
<html>
<body>
<td valign="BOTTOM" align="RIGHT">
<?php
$pnext=$pageNum_vid_full+1;
if ($pagenow!=$npage){
echo "<a href=videoset.php?pageNum_vid_full=$pnext&id=$catid><img src=images/next.jpg width=80 height=15 border=0></a>";
}
?>
</td>
</body>
</html>
and when i click this button i always get a undefine offset 5
i supose its cause my array was not populate??????
thx