Code:
Parse error: syntax error, unexpected $end in /home/gibbons/public_html/photoshop.php on line 37
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php
$connect = mysql_connect("localhost", "dbun", "dbpw");
mysql_select_db("dbname", $connect);
$select = mysql_query("SELECT * FROM `tutorials`", $connect);
while($row = mysql_fetch_array($select, MYSQL_ASSOC)) {
$id = $row['id'];
$name = $row['name'];
$email = $row['email'];
$category = $row['category'];
$url = $row['url'];
$url2 = $row['url2'];
$WebsiteName = $row['WebsiteName'];
$TutorialName = $row['TutorialName'];
$description = $row['description'];
if ($category == "Photoshop"){
echo " <p>
<strong>Tutorial Name:</strong> <a href=\"$url2\">$TutorialName</a><br />\n
<strong>Submitted By:</strong> <a href=\"$url\">$WebsiteName</a><br />\n
<strong>Description:</strong> $description
</p>";
}
else {
echo "Sorry, There are currently no tutorials in this category.";
}
?>
</body>
//LINE 37 BELOW
</html>