Feelay 0 Report post Posted January 16, 2011 Try adding or die(mysql_error()); to the mysql_query, so that it looks like this:$message = mysql_query("SELECT * FROM messages WHERE message_id = '$message_id' AND to_user = '$userfinal'") or die(mysql_error()); Share this post Link to post Share on other sites
spawN-eD 0 Report post Posted January 16, 2011 still nothing Share this post Link to post Share on other sites
Feelay 0 Report post Posted January 16, 2011 (edited) Are you sure that you've named the session "session_name"? $userfinal=$_SESSION['session_name']; When the user logs in I mean. Edited January 16, 2011 by Feelay (see edit history) Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 12, 2011 HELP PLEASEHow To Make A Private Message System.When I use the code on read_message.Php it just saysTitle:From:Message:It dosen't actually display anything. I'm using you're login script so I reset the session name to user but it still dosen't do anything. Any help please? -question by Keyboard Share this post Link to post Share on other sites
Spliffie 0 Report post Posted September 15, 2011 @Rita: It's possible, but I'm afraid I don't have time to do that right now, :/@spawN-eD: Could you please paste the code for your read_message.php? (If you have any passwords or anything like that provided in the file, don't remember to replace them with ### or *** or something like that so that no one sees them, Regards/Feelay. Hi Feelay,Just like to say thanx for one, as i have it up and running and all is well.Just want to ask, could we possibly add some reply buttons and delete message buttons?regardsSpliffie Share this post Link to post Share on other sites
Feelay 0 Report post Posted September 28, 2011 Hi Feelay,Just like to say thanx for one, as i have it up and running and all is well.Just want to ask, could we possibly add some reply buttons and delete message buttons?regardsSpliffie Well, of course it's possible, (:But I'm afraid I don't have the time to revive old scripts and add functions to them. It'd be better if you tried to do it yourself! (:Regards,/Feelay Share this post Link to post Share on other sites
iGuest 3 Report post Posted October 13, 2011 Blank messageHow To Make A Private Message System.Replying to FeelayI'm getting the same error.My session_name is the same is set correctlyBut it's still displaying blank fields.Thanks Share this post Link to post Share on other sites
iGuest 3 Report post Posted October 13, 2011 please helpHow To Make A Private Message System.Replying to SpliffieHow did you get this working?It's just not doing it for me.Cheers, Share this post Link to post Share on other sites
iGuest 3 Report post Posted April 2, 2012 Hi dudeI was looking for a script for PM's.... more like the layout...I allready coded my table and php code.The funny thing is that my table looks almost the same as yours!Great minds think a like, right?My table:idpmfromusertousertitlebodydateaddreaddeletedSee... the first 6 columns are the "same" + I had dateadd and deleted.Cheers! Share this post Link to post Share on other sites
iGuest 3 Report post Posted May 1, 2012 thank you very much for this helpful post, i finally got to finish my messaging system. Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 15, 2013 Hi im having a ver very bad problem. In my database i see who the user that suppose to be receiving the message and who sent that message, but in the read_messages.php file i cant see the messages that are suppose to be sent to me at all. i only see this:TitleFrommessage. and thats all please please help!! Share this post Link to post Share on other sites
iGuest 3 Report post Posted June 16, 2013 hey i tried this on adobedreamweaver and inbox and send pm are working good but read message doesnt work in adobedreamweaver sesion starts (kt_login_id or kt_login_user ) and İ did $userfinal=$_SESSION['kt_login_user']; two pages work but read message doesnt work i only see title : from: message: back to inbox Share this post Link to post Share on other sites
iGuest 3 Report post Posted June 16, 2013 second time clicked to message it failed...only one time reading Share this post Link to post Share on other sites
iGuest 3 Report post Posted April 16, 2014 Hey. Is anybody can show me the code to view unread message count?? Thnx Share this post Link to post Share on other sites