eaglelegend Posted May 22, 2008 Share Posted May 22, 2008 Hey, my mail code has stopped working, I cant figure out why replys are not sending, the button clicks but nothing happens. please help, it is much appreciated case "sview": $update = mysql_query("UPDATE `messages` SET status = 'read' WHERE `id`='$id' AND `site`= '$Z'"); $query = "SELECT * FROM `messages` WHERE `id`='$id' AND `site` = '$Z'"; $sql = mysql_query($query) or die("MySQL Error in query: ".$query."<br />".mysql_error()); while($row = mysql_fetch_array($sql)) { extract($row); $subject = (substr($subject,0,3)=="RE:")?$subject:"RE: $subject"; print "<h2>$subject</h2><p> To: <a href=\"pro.php?user=$to\">$to</a><br /> From: <a href=\"pro.php?user=$from\">$from</a><br /> Date: $date<br /> <div class=\"text_box\"> $body</div> } break; default: $query = "SELECT count(*) as msgs FROM `messages` WHERE `to` = '$u' AND `site` = '$Z' "; $sql = mysql_query($query) or die("MySQL Error in query: ".$query."<br />".mysql_error()); $msg = mysql_fetch_array($sql); echo "You have {$msg['msgs']} messages"; echo "<h1>Send Message</h1><p> <form action=\"mail.php?action=sendmsg\" method=\"post\">"; echo "<input type=\"radio\" name=\"type\" value=\"1\" class=\"text_box\" alt=\"Click here if you are sending your message outside this site via email\" title=\"Click here if you are sending your message outside this site via email\"> Email NOTICE: THIS IS ONLY SAMPLE OF MY CODE!!! Link to comment https://forums.phpfreaks.com/topic/106823-mail-system-gone-down/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.