Ashoar Posted January 9, 2009 Author Share Posted January 9, 2009 Thats why i asked, so you could show how to do it Quote Link to comment Share on other sites More sharing options...
gevans Posted January 9, 2009 Share Posted January 9, 2009 ok //databse conenction omitted $result = mysql_query("SELECT `newmsg` FROM `messages` WHERE received='$user' && newmsg='1') or die(mysql_error()); if($details = mysql_fetch_assoc($result)){ echo "<p>You have new messages</p>"; } Quote Link to comment Share on other sites More sharing options...
Ashoar Posted January 9, 2009 Author Share Posted January 9, 2009 Ah thanks. An error shows up with that Parse error: syntax error, unexpected '>' in /home/a4588739/public_html/inbox.php on line 34 which is this line: echo "<p>You have new messages</p>"; Quote Link to comment Share on other sites More sharing options...
gevans Posted January 9, 2009 Share Posted January 9, 2009 EDIT //databse conenction omitted $result = mysql_query("SELECT `newmsg` FROM `messages` WHERE received='$user' && newmsg='1'") or die(mysql_error()); if($details = mysql_fetch_assoc($result)){ echo "<p>You have new messages</p>"; } Quote Link to comment Share on other sites More sharing options...
Ashoar Posted January 9, 2009 Author Share Posted January 9, 2009 Well no errors that time, but i tested it. Sent a pm from 1 user 2 another, but it did not work, didnt say they they had a new message. Quote Link to comment Share on other sites More sharing options...
Ashoar Posted January 10, 2009 Author Share Posted January 10, 2009 Bump. Anyone know what the problem could be now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.