...T_LOGICAL_OR in PHP? I'm trying to make a simple CMS with PHP and mySQL and I keep getting this error:
Parse error: syntax error, unexpected T_LOGICAL_OR
Here's the code that I'm working with:
<?php
$conn = mysql_connect('localhost', 'root', 'example');
mysql_select_db("site_updates");
$query = 'SELECT * FROM `site_updates` LIMIT 0, 30';
$result = mysql_query($query);
$post = mysql_fetch_assoc($result); or die mysql_error();
echo "<h1>" . $post['Post_Title'] . "</h1><br>";
echo "<h3>" . $post['Post_Author'] . "</h3><br>";
echo "<p>" . $post['Post_Content'] . "</p>";
?>
I've been busting my head forever trying to figure out what the hell is wrong with this thing. Any suggestions or pointers would help.
Bookmarks