it works with this line:
$query = "SELECT * FROM images LIMIT 9, $Next";
Now, HOW TO PUT IN A 'PREV' link...?
thanks to all! here is the completed code:
<?
require_once("sc_fns.php");
db_connct();
mysql_select_db("supra_sc");
$query = "SELECT * FROM images LIMIT 9, $Next";
$result=mysql_query($query) or die ("MySQL died on '$query' with this error:".mysql_error());
?>
<TABLE WIDTH="450" CELLPADDING="3" CELLSPACING="10" BORDER="0" COLS="3">
<?
$inc = 1;
while ($row = mysql_fetch_array($result)) {
if ( $inc % 3 == 1 ){
?>
<TR>
<?
}
?>
<TD WIDTH="33%" ALIGN="CENTER"><A HREF="<?= $row["a_href"]?>"><IMG SRC="<?= $row["img_src"]?>" WIDTH="100" HEIGHT="100" BORDER="0"></TD>
<?
if ( $inc % 3 == 0 ){
?>
</TR>
<?
}
$inc++;
}
// next display urkl will be "display.php?Next=$inc"
echo ("<a HREF='linking.php?Next=$inc'>Next</a>");
?>