NO SUCH USER!
'; } exit(); } } require_once('./login.php'); $title = 'Chicago College Connection - Private Messaging'; require_once('./includes/header.php'); require_once('./includes/kses.php'); require_once('./includes/smilies.php'); require_once('./includes/prvtmsg.php'); $num_per_page = 7; require_once('./includes/nextback.php'); if ($logged_in == true) { if ($_GET[delete]) { mysql_query("DELETE FROM msgs WHERE msg_id=$_GET[delete] && to_id='$user_data[user_id]'"); echo '
Message Deleted!

'; $_GET[show] = inbox; } if ($_POST[send]) { preview(); } if ($_GET[send_to]) { include('./includes/newmsgform.php'); include('./includes/footer.php'); exit(); } if ($_GET[msg_id]) { $msg_data = mysql_fetch_array(mysql_query("SELECT * FROM msgs WHERE msg_id='$_GET[msg_id]' && to_id='$user_data[user_id]' || msg_id='$_GET[msg_id]' && from_id='$user_data[user_id]' ")); $from_user_data = info_from_userid($msg_data[from_id]); $to_user_data = mysql_fetch_array(mysql_query("SELECT user_name, first_name, last_name FROM users WHERE user_id='$msg_data[to_id]'")); $replysubject = $msg_data[subject]; $msg_data[subject] = smilies($msg_data[subject]); $msg_data[body] = smilies($msg_data[body]); $msg_data[subject] = stripslashes($msg_data[subject]); $msg_data[body] = stripslashes($msg_data[body]); $image = user_thumb($from_user_data); ?>


From : ( )
To : ( )
Subject :
| Reply | Go Back |
- Private Messages -
Compose Message - inbox - Sent Messages

Status User Subject Action
"; include('./includes/footer.php'); exit(); } $msg_data = trim_array($msg_data, 'messages'); foreach($msg_data as $key => $msg_data) { $msg_data[subject] = smilies($msg_data[subject]); $msg_data[subject] = quotes($msg_data[subject]); if ($_GET[show] == 'inbox') $from_user_data = mysql_fetch_array(mysql_query("SELECT user_name, pic FROM users WHERE user_id='$msg_data[from_id]'")); if ($_GET[show] == 'outbox') $from_user_data = mysql_fetch_array(mysql_query("SELECT user_name, pic FROM users WHERE user_id='$msg_data[to_id]'")); $image = user_thumb($from_user_data); ?> read
';}else{echo '
unread
';}?>
| Read | Delete |
'; buttons(); } else { ?>

Please log in first, then your messages will appear.