Menu
I’m at a loss. This is what I’ve done:
if ($_SESSION[‘log’] == ‘yes’) {
$to = file (‘messages_to.php’);
$from = file (‘messages_from.php’);
$message = file (‘messages_content.php’);
print ‘<div id=”content”>’;
if ($to[1] == $_SESSION[‘username’]) {
print ‘
<div id=”contitle”>From:’ . $from[1] . ‘</div>
<div id=”context”>’ . $message[1] . ‘</div>
‘;}
The username is the exact same string as the one on $to[1], but it’s not finding the two as equals and won’t print the rest of the stuff. Any explination as to why $to[1] and $_SESSION[‘username’] aren’t matching?