The script works fine, I want to be able to limit the number of records the script return on each page to maybe 10 or 12. Also to give the user the option to go back and forward by clicking on maybe Next or Previous. If anybody know the answer, please let me know.
<?php
if (!($link = @ mysql_connect($dbhost, $dbuser, $dbpass)))
die("Could not connect to Server");
if (!mysql_select_db($dbname, $link))
die("Could not connect to database");
$sql="SELECT * FROM dtable WHERE cat='$cat' ";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result))
{
echo "<table width=100% border=0 cellpadding=0 cellspacing=0>";
echo "<tr> <td height=60 width=100 valign=center><a href= http://$myrow[siteurl] target=_blank title=$myrow[sitename]><img src=/logo/$myrow[imagename] width=88 height=31 border=0 align=baseline hspace=10 vspace=0 alt=$myrow[sitename]></td>";
echo "<td valign=top width=320 align=left><a href=http://$myrow[siteurl] class=navcolor target=_blank title=$myrow[sitename] style=text-decoration:none;color:#003399> $myrow[sitename]<br><font color=black face=arial,helvetica,sans-serif size=1 style=text-decoration:none;align:justify;>$myrow[linktext]</font></a> </tr>";
echo "<tr> <td height=13 width=100% colspan=2><img src=linehg.jpg width=100% height=1></td> </tr></table>";
}
?>