That still doesn't seem to work; here's more code:
$page = "webcam";
$sql = "select name,width,height,gallery from new_gallery where gallery=".$page." LIMIT ".($start*$photos_per_page).",".$photos_per_page."";
$rs = mysql_query($sql,$conn);
// init i (as counter of the displayed table fields:
$i = $start;
$prev_start = $start - $photos_per_page;
$next_start = $start + $photos_per_page;
// START TABLE HERE:
echo "<table cellpadding=\"0\" align=\"center\" cellspacing=\"10\" width=\"200\" border=\"0\">";
while ($photos = mysql_fetch_array($rs) )
{
When the WHERE line is in place, it gives me the error:
Supplied argument is not a valid MySQL result resource in /host/c/h/e/p/o/r/cheeks2k.port5.com/gallery/new_gallery4.php on line 44
(Line 44 is the WHILE loop)