I have a file in new_pm.php contains code like this:
<?php include 'box_right.php';?>
then, in the box_right.php contains code like this:
<?php
echo "<div class="box_right">
<a href="list_pm.php">Pesan(<?php echo $nb_new_pm; ?>)</a> - <a href="profile.php?id=<?php echo $_SESSION['userid']; ?>"><?php echo htmlentities($_SESSION['username'], ENT_QUOTES, 'UTF-8'); ?></a> (<a href="logout.php">Logout</a>)
</div>";
?>
However, a warning like this:
Parse error: syntax error ....
How do I resolve this?
edit:
<?php
echo "<div class='box_right'>
<a href='list_pm.php'>Pesan(<?php echo $nb_new_pm; ?>)</a> - <a href='profile.php?id=<?php echo $_SESSION['userid']; ?>'><?php echo htmlentities($_SESSION['username'], ENT_QUOTES, 'UTF-8'); ?></a> (<a href='logout.php'>Logout</a>)
</div>";
?>