DarrenReeder Posted November 30, 2009 Share Posted November 30, 2009 I have made a small Private Message system on my website and what it does so far is.. you choose the account to send it to, and you choose the Message content (thats the only things) then when yuo send it off it saves... your Name Their Name message conten ----- now ive made it so when yuo go to messages page it searches the mesages table for yuor name on the 'their name' section and if there is any it says 'you have %s messages although you cant see them because its still being developed'.. now i want to know if anyone can help me on how i just make it so all the messages are just listed (not link to them...it just shows them all)....thanks if anyone can help me on this.. Quote Link to comment https://forums.phpfreaks.com/topic/183491-message-system-inbox/ Share on other sites More sharing options...
DEVILofDARKNESS Posted December 8, 2009 Share Posted December 8, 2009 You will have todo a query like: $query = "SELECT * FROM messages WHERE userid='$userid'"; $res = mysql_query($query); while($arr = mysql_fetch_array($res)){ print $arr['title'] . "\n"; } <= will give you a list with all message titles is this what you meant? Quote Link to comment https://forums.phpfreaks.com/topic/183491-message-system-inbox/#findComment-973592 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.