liamloveslearning Posted May 16, 2008 Share Posted May 16, 2008 Hi all, Im currently in the process of building a messaging system for my website; as im not that fluent with coding im currently using ADDT as im going along in turn which is helping me pick up PHP & mySQL, Ive currently become stuck on, well all of my system and what I think is wrong is my recordset isnt filtering out the relevant data; instead it looks like its just grabbing my session variable to display who the message is off; rather than who its really from, yet when I manually check the code everything seems in order; If anybody can help me id greatly appreciate it; Heres my code for my inbox page <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="80" align="left" class="message_header">Date</td> <td width="220" align="left" class="message_header">From</td> <td width="70" align="left" class="message_header">Status</td> <td width="220" align="left" class="message_header">Subject</td> </tr> <?php do { ?> <tr> <td class="message_rows"><?php echo date('m/d/Y',$row_message_inbox['message_datetime']); ?><br /><?php echo date('g:i A',strtotime($row_message_inbox['message_datetime'])); ?><br /></td> <td class="message_rows"><?php echo $row_mmessage_sender['member_email']; ?><br />(<?php echo $row_mmessage_sender['member_firstname']; ?> <?php echo $row_mmessage_sender['member_lastname']; ?>)</td> <td class="message_rows"><?php echo $row_message_inbox['message_read']; ?></td> <td class="message_rows"><?php echo $row_message_inbox['message_subject']; ?></td> </tr> <?php } while ($row_message_inbox = mysql_fetch_assoc($message_inbox)); ?> </table> Link to comment https://forums.phpfreaks.com/topic/105952-solved-messaging-system-help/ Share on other sites More sharing options...
liamloveslearning Posted May 16, 2008 Author Share Posted May 16, 2008 nevermind, solved it Link to comment https://forums.phpfreaks.com/topic/105952-solved-messaging-system-help/#findComment-542998 Share on other sites More sharing options...
soycharliente Posted May 16, 2008 Share Posted May 16, 2008 Well, what was the answer? It might help someone else down the road. The best thing about a forum is the sharing of knowledge. Link to comment https://forums.phpfreaks.com/topic/105952-solved-messaging-system-help/#findComment-543044 Share on other sites More sharing options...
947740 Posted May 16, 2008 Share Posted May 16, 2008 And seeing as it was solved, hit the "Topic Solved" button in the lower left-hand corner of this page. One thing I noticed was this: $row_mmessage_sender['member_email']; There are 2 m's in message... Link to comment https://forums.phpfreaks.com/topic/105952-solved-messaging-system-help/#findComment-543066 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.