error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:\CGI PHP\project\lib\libblog.php on line 35
please help this is pat of my project and I am stuck ...
this is the function that causing the erro :
function rescentArticle()
{
//select on the article table and save the articles in the articleList
$result= mysql_query("select * from article where ID=(max(ID) from article));
if (!$result) die('Invalid query: ' . mysql_error());
while ($row= mysql_fetch_assoc($result))
{
$article= new Article($row['ID'],$row['date'],$row['title'],$row['body']); //this is line 35
array_push($this->articleList,$article);
}
//print "this the rescent Article in the table ".$this->$row['ID'].$row['date'].$row['title'].$row['body'];
}
I call it from index.php :
$blog= new Blog();
print_r($blog);
$blog->getArticleList();
$rescentArticle= $blog->rescentArticle();
print "Title : ".$rescentArticle->title."article content ".$rescentArticle->body</br>;