Jump to content

Message System inbox


DarrenReeder

Recommended Posts

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..

Link to comment
https://forums.phpfreaks.com/topic/183491-message-system-inbox/
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/183491-message-system-inbox/#findComment-973592
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.