Hi,
I got the following query to spit out a table that displays a list of users which works fine but what I
need to do is restrict the number of results displayed to 4/#, due to images being displayed in the table. Is it possible to do this and use a next/back button to displys subsequent results?
Thanks
G
=====================
$query = "SELECT * FROM employees WHERE first = '".mysql_escape_string
($first)."'";
$result = mysql_query($query);
$numrows = mysql_num_rows($result);
{
echo "There are $numrows user(s) in the database, they are";
}
?><html><br><br><?php
echo "<table border=1>\n";
echo "<tr><td>Name</td><td>e-mail</td><td>Department</td><td>Photo</td></tr>\n";
while ($myrow = mysql_fetch_row($result)) {
printf("<tr><td>%s %s</td><td>%s</td><td>%s</td><td>
%s</td>\n",
$myrow[1], $myrow[2],$myrow[3], $myrow[4], $myrow[5]);
}
echo "</table>\n";
?>