Ok picture the scene MySQL Table spec1, spec2, spec3 ... upto spec50
now they will contain data upto any given field and not beyond so if spec30 has a value and spec31 does not spec1 - spec30 will all contain data.
what I am trying to do is page the results in groups of 10 printing a more (Next) link for the next set of data if the first field in that group contains data if it does not I want to print a close window link instead..
of course I have made a right mess of it .. Please can someone help me out.
thanks all in advance...
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$myPage = $ix+ 1;
$npage = $page + 1;
$nextpage = "spec$myPage";
$Mnextpage = $row_Recordset1['spec$myPage'];
echo $row_Recordset1['spec$myPage'];
if(is_null($Mnextpage)){
?>
<br>
<a href="javascript:window.close;">Close Window</a>
<?php
}else{
?>
<a href="fullspec_popup.php?handset=<?php echo $myTariff;?>&page=<?php echo $npage;?>">More</a>
<?php } ?>