Cod: Selectaţi tot
<php
session_start();
if (!session_is_registered(email)){
header("location ../../login.php");
}
?>
<?php
ERROR_REPORTING(E_ALL | E_STRICT);
include("../../config.php");
$email = $_SESSION['email'];
$select_user = mysql_query("SELECT * FROM users WHERE email = '$email'");
while ($show1 = mysql_fetch_assoc($select_user)){
$to_first_name = $show1['first_name'];
$to_last_name = $show1['last_name'];
}
$select_msg = mysql_query("SELECT * FROM messages WHERE to = '".$to_first_name." ".$to_last_name."'");
while ($show2 = mysql_fetch_assoc($select_msg)){
echo '
<table border="1">
<tr>
<td>From</td>
<td>Subject</td>
<td>Date</td>
</tr>
<td>'.$show2['from'].'</td>
<td><a href="read_msg.php?mid='.$show2['id'].'">'.$show2['subject'].'</a></td>
<td>'.$sho2['date'].' '.$show2['hour'].'</td>
</tr>
</table>
';
}
?>
Cod: Selectaţi tot
Notice: Undefined variable: _SESSION in /home/hosting/gamestime/4friends.hi2.ro/account/messages/messages.php on line 11