Jump to content

Error? T_CONSTANT_ENCAPSED_STRING


3raser

Recommended Posts

PHP error code:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home6/clubzobb/public_html/Homepage/profiles.php on line 215

 

The code that makes the error:

 

if ($comments==1) {

mysql_query("SELECT * FROM profilecomments WHERE touser='$output'");
while ($row = mysql_fetch_assoc($get))
{
if ($row[reported]==1) { $reporttext = "[Report]"; } else { $reporttext = "Message Reported"; }
$info = "Posted by ". $row[fromuser] ." on ". $row[date] ."<div align='right'>". $reportext ."</div><br><br>". $row[message] ."<hr><br>";
$info2 "<a href='profiles.php?addcomment=". $id55 ."'></a>Add a comment to ". $output ."'s profile!";
}

} else {

mysql_query("SELECT * FROM profilecomments WHERE touser='$username'");
while ($row = mysql_fetch_assoc($get))
{
if ($row[reported]==1) { $reporttext = "[Report]"; } else { $reporttext = "Message Reported"; }
$info = "Posted by ". $row[fromuser] ." on ". $row[date] ."<div align='right'>". $reportext ."</div><br><br>". $row[message] ."<hr><br>";
$info2 "<a href='profiles.php?addcomment=". $id55 ."'></a>Add a comment to ". $username ."'s profile!";
}

}

if ($viewcount==1) { 
mysql_query("UPDATE users SET profileviews = profileviews + 1 WHERE username='$output'");
}

echo "$message57";
echo $info;
echo $info2;

Link to comment
https://forums.phpfreaks.com/topic/197196-error-t_constant_encapsed_string/
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.