Thread: Error Message
View Single Post
Old 07-22-2007, 04:50 PM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Error Message

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);
?>
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote