Sponsored by:

Parse error: syntax error, unexpected T_LOGICAL_OR in /www/***.php on line 15?

Parse error: syntax error, unexpected T_LOGICAL_OR in /www/***.php on line 15?

Postby michelangelo » Mon Apr 23, 2012 6:01 pm

$result = mysql_query("select id, title, date_time, content from posts order by date_time");
while($row = mysql_fetch_row($result)) or die(mysql_error()){
@$date = date("M d Y g:iA", strtotime($row[1]));
echo '<span class="title"><b>Title:</b> '.$row[0].' <b>Date:</b> '.$date.'</span>';
echo '<br><span class="content"><b>Content:</b></span> '.$row[2].'';
echo '<br><b><a href="?action=comment&id='.$row[3].'">Le… a Reply</a></b>';
echo '<br>Comments associated with this post:';

echo get_comments("select id, author_name, date_time, email, comment from comments where post_id = '".$row[3]."'");
/*
$result = mysql_query("select id, author_name, date_time, email, comment from comments where post_id = '".$id."'");
for($i = 1; $row = mysql_fetch_row($result); $i++){
@$date = date("M d Y ", $row[2]);
echo '<b>'.$i.'.</b>  '.$row[4].'<br> <b>By:</b> '.$row[1].' at '.$row[3].' on '.$date.'   <a href="?action=delete_comment&id='.$row[0… this comment</a>';
}
*/
echo '<br><br>';
}


not sure whats causing this error. please help
michelangelo
 
Posts: 761
Joined: Sat Apr 02, 2011 8:00 am
Top

Parse error: syntax error, unexpected T_LOGICAL_OR in /www/***.php on line 15?

Postby devon » Mon Apr 23, 2012 6:02 pm

Read about this here
bit.ly/HdnKXC
Check out the 2nd and 3rd red links on the right side of the above website.
devon
 
Posts: 799
Joined: Sat Apr 02, 2011 3:05 am
Top


Return to Class Action

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: crosbey, gustav, jorel, osbourne, regenweald, spengler and 0 guests