Jump to content

[SOLVED] Messaging system help


Recommended Posts

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

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.