Jump to content

Simple Parse Error


c-o-d-e

Recommended Posts

This is incredibly confusing me.

 

Parse error: syntax error, unexpected T_STRING in /home/jeanie/public_html/Updates/updatediv.php on line 4

 

Line 4 = $query etc etc

 

<?php
include '../config.php';

$query = mysql_query("SELECT * FROM News ORDER BY Posted DESC LIMIT 3") or trigger_error("Query failed: " mysql_error());
$row = mysql_fetch_array($query);

echo '<h4 style="margin:0px;">'. date("d/m/Y H:i:s", $row['Posted']) .'</h4>';
echo '<p style="margin:0px;">'. substr($row['Article'],0,100) .'<a href="/allnews.php">Read More</a></p><br />';
echo '<center><a href="allnews.php">View All</a></center>';
?>

 

I don't get the problem..

Link to comment
https://forums.phpfreaks.com/topic/184164-simple-parse-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.