Lamez Posted September 2, 2008 Share Posted September 2, 2008 ok now I am working on my PM system, and I cannot figure out how to total up the unread messages. My DB: sender, receiver, received, message, subject so when the user logs in I want them to see how many unreceived messages they have. so something like this? <?php $r = mysql_query("SELECT * FROM `messages` WHERE `receiver`='$user_' AND `received`='0'"); $total = mysql_num_rows($r); echo $total; ?> Link to comment https://forums.phpfreaks.com/topic/122307-solved-not-sure-on-how-to-do-this-making-a-total/ Share on other sites More sharing options...
Lamez Posted September 2, 2008 Author Share Posted September 2, 2008 lol never mind, I was right I just spelled something wrong Link to comment https://forums.phpfreaks.com/topic/122307-solved-not-sure-on-how-to-do-this-making-a-total/#findComment-631558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.