Hiya Guys,
Why do I keep getting greeted with the following message?:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in
C:\Documents and Settings\Dale Piper\Desktop\Xampp\htdocs\Photo Gallery\Display.php on line
23
Code:
<link rel="stylesheet" type="text/css" href="Index.css" />
<script src="Thumbnails.js"></script>
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("Gallery", $con);
$result = mysql_query("SELECT * FROM Images");
echo '<div id="Scroller">';
while($row = mysql_fetch_array($result))
{
echo '<img class="Thumbnails" src="' . $row['Path'] . '" />';
echo $row['Caption'];
}
echo '</div>';
echo '<img src="../../images/nav/tri-lft.gif" width="12" height="12" alt="" border="0" onmouseover="scrollDiv(-4, 'h');" onmouseout="stopScroll();">';
echo '<img src="../../images/nav/tri-rt.gif" width="12" height="12" alt="" border="0" onmouseover="scrollDiv(4, 'h');" onmouseout="stopScroll();">';
mysql_close($con);
?>