Thank you Craig, I am trying to incorporate your loop function in, but I keep getting a parse error on this line
loop {
This is the code that I pull the list data with.
// show movie list
$result = mysql_query("SELECT * FROM main_movie",$db);
if ($myrow = mysql_fetch_array($result))
{
do {
printf("<SPAN CLASS=size12><a href=javascript:openWin(\"%s?id=%s\",400,400) CLASS=link3>%s %s</a><br><br>\n", $PHP_SELF, $myrow["id"], $myrow["prefix"], $myrow["movie"]);
}
while ($myrow = mysql_fetch_array($result));
} else {
echo "Sorry, no records were found!";
}
}
I am not sure what I am doing wrong? I put this part in the place of the .item. section on your code.