MyBB Community Forums

Full Version: Quick PHP/HTML Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am getting this parse error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' on line 15

Code:

<html>
<head>
<link rel="stylesheet" type="text/css" href="style/style.css" />
</head>
</html>

<?php

require_once 'connect.php';
$result = mysql_query("SELECT * FROM announcements ORDER BY `id` DESC LIMIT 0 , 1");
?>
<?php
while($row = mysql_fetch_array($result))
  {
  echo "<table id="announcementbar" bgcolor='#0066ff' align='center' valign='top' border='0' height='29'>";
  echo "<tr><td valign='top'><img src='http://websitebabble.com/images/icons/icon4.png' alt='Exclamation' border='0' title='Exclamation'></td><td align='center' valign='top' width='1200' height='29'><h4>" . $row['announcement'] . "</h4></td></tr></table>";

  }
?>

Thanks
In above find;
echo "<table id="announcementbar" bgcolor='#0066ff' align='center' valign='top' border='0' height='29'>";
and Change it into;
echo "<table id='announcementbar' bgcolor='#0066ff' align='center' valign='top' border='0' height='29'>";
Thanks!