O.K, guys. I figured it out. It was so simple I almost got sick. In my situation, I needed numbers to increment as the user scrolls through the database. So I used the session variable. See below;
session_start();
session_register('count');
// increment count
$count++;
echo $count;
$db=mysql_connect("localhost","user","password")
or die("Could not connect : " . mysql_error());
print "Connected successfully";
print "<br>";
mysql_pconnect();
mysql_select_db("mylogin") or die("Could not select database");
$query = ("SELECT * FROM myimagexx where ID=$count");
$result = mysql_query($query) or die("Query failed : " . mysql_error());
$num_rows = mysql_num_rows($result);
while ($row= mysql_fetch_array($result))
{
print "<table width=75% border=1>\n";
print "<td width=8%>";
$image = $row['imagefilepath'];
echo "<img src=$image>";
print "</td>";
}
/* Free resultset */
mysql_free_result($result);
/* Closing connection */
mysql_close($db);
?>
Right now, when the page is revisted by the user in the current session (here I just refresh the browser until I put the appropiate links in.), the $count increases by one. That number is then passed to the Where ID= query. I just have to clean up the script. But now I see how I can do it.
Thanks for your patience and assistance.
KJ