<? $sql = "select * from film_shows ORDER BY film_order asc";
$res = mysql_query($sql);
//$row = mysql_fetch_array($res);
while($row = mysql_fetch_array($res)) {
if($row) {
$film_title = $row['film_title'];
$film_picture = $row['film_picture'];
$film_shdes = $row['film_shdes'];
$film_id = $row['film_id'];
$result = "<div id=\"content_reality\">";
$result .= "<h2>";
$result .= "".$row['film_title']."";//$film_title;
$result .= "</h2>";
$result .= "<p align=\"justify\" style=\"min-height:200px;\">";
$result .= "<img src=\"".$row['film_picture']."\"align=\"left\" style=\"clear:both; max-width:150px; max-height:150px; padding-left: 20px;padding-right: 20px;\" alt=\"\" border=\"0\">";
$result .= "".$row['film_shdes'].""; //$film_shdes;
$result .= "<br>";
$result .= "<a href=\"filmshow.php?film_id=".$row['film_id']."\">";
$result .= "Learn More";
$result .= "</a></p>";
$result .= "</div>";
echo $result;
}
}
This is my current code.
I does what I want and pulls information from the database and puts them on the page, the only issue is that the link to the first page doesn't work, while all the rest of them do. I have changed this code a few times, but still the first link will not work.
Any help would be appreciated.