<<<<Restricted Area>>>>" . "
Sorry, you must Log In to view this Page

"); exit(); } $usrn = $_POST['usrn']; $ID = $_POST['ID']; $cmdt = $_POST['cmdt']; $num = $_POST['num']; if($num == 0){ $comdot = ""; $cmdt = 0; }else{ $comdot = ""; $cmdt = 1; } $re = $_POST['reply']; $rep = stripslashes($re); $repl = str_replace ( "'", '’', $rep); $reply = str_replace ( '"', '"', $repl); $reply2 = nl2br($reply); $urgent = $_POST['urgent']; if($urgent == 'yes'){ $status = "urgent"; $urgmess = " Urgent"; }else{ $status = "unread"; $urgmess = " "; } $dtnum = date(Ymd); $dbcnx = @mysql_connect('mysql.plainhost.com','ecosmar_ecosmart','ecoman1'); mysql_select_db('ecosmar_friendly', $dbcnx); $listem = @mysql_query("SELECT ID,MID,fr_name,subject,message,dtnum FROM messages WHERE ID='$ID'"); if (!$listem) { echo("Problem retrieving Message.
Error: ". mysql_error()); exit(); }else{ $row = mysql_fetch_row($listem); $ID = $row[0]; $MID = $row[1]; if($MID == 0){ $MID = $ID; } $fr_name = $row[2]; $subject = $row[3]; $message = $row[4]; $input2 = nl2br($message); $mdtnum = $row[5]; $chunk_dtnum = chunk_split($mdtnum, 2, ':'); $chunk_arr = explode(":", $chunk_dtnum); } $newmess = @mysql_query("INSERT INTO messages SET MID='$MID',fr_name='$usrn',subject='$subject',message='$reply',status='$status',usrn='$fr_name',dtnum='$dtnum'"); if(!$newmess){ $sendmess = "Problem Sending Reply
" . mysql_error(); }else{ $sendmess = "Reply sent to " . $fr_name; } ?>
Write a Message Messages()  Discussions( )   New
Subject: 
Message: 
Reply: 
No more.