There is an error with the while on the 4th line of code below. It’s a syntax error saying that “unexpected T_LOGICAL_OR in /home/a3362820/public_html/assignment/index.php”
<?php
echo “<h1>Blog</h1><hr>”;
require_once(‘includes/config.php’);
$queryget = mysql_query(“SELECT * FROM blogEntries ORDER BY id DESC”);
while ($row = mysql_fetch_assoc($queryget)) or die (mysql_error())
{
$id = $row[‘id’];
$name = $row[‘name’];
$message = $row[‘message’];
$date = $row[‘date’];
$time = $row[‘time’];
}
echo “<hr>”;
echo "
<form action=;index.php’ method=‘POST’>
<table width=‘100%’>
<tr>
<td width=‘18%’ valign=‘top’>
Your name:
</td>
<td>
<input type=‘text’ name=‘name’ maxlength=‘25’>
</td>
</tr>
<tr>
<td valign='top'>
Your message:
</td>
<td>
<textarea cols='20' rows='2' name='message maxlength='250'>
<p>
<input type='submit' name='submit' value='Post'>
</td>
</tr>
</table>
</form>
";
?>
Any help would be appreciated.