Guest User

Untitled

a guest
Jan 15th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <table width="800" border="0">
  2. <form name="form1" method="post" action"pm_inbox.php">
  3. <tr>
  4. <td width="41" align="center">#</td>
  5. <td width="490">Title:</td>
  6. <td width="255">From:</td>
  7. </tr>
  8. <?php
  9.  
  10. while($rows=mysql_fetch_array($result)) {
  11. ?>
  12. <?php if ($rows['viewed'] == 0) { //show messages in bold ?>
  13.  
  14. <tr>
  15. <td width="41" align="center"><input type="checkbox" id="checkbox[]" value"<?php echo $rows['id']; ?>" /></td>
  16. <td width="490"><a href="pm_view_in.php?in=<?php echo $rows['id']; ?>"><b><?php echo $rows['title']; ?></b></a></td>
  17. <td width="255"><?php echo $rows['from_username']; ?></td>
  18. </tr>
  19.  
  20.  
  21. <?php } else if ($rows['viewed'] == 1) { ?>
  22.  
  23. <tr>
  24. <td width="41" align="center"><input type="checkbox" id="checkbox[]" value"<?php echo $rows['id']; ?>" /></td>
  25. <td width="490"><a href="pm_view_in.php?in=<?php echo $rows['id']; ?>"><?php echo $rows['title']; ?></a></td>
  26. <td width="255"><?php echo $rows['from_username']; ?></td>
  27. </tr>
  28.  
  29. <?php } ?>
  30.  
  31. <?php } ?>
  32.  
  33. <tr>
  34. <td coldspan="3" align="center"><?php if ($inboxMessages > 0) { ?><input type="submit" name="delete" id="delete" value="Delete Selected Messages" /></td>
  35.  
  36. <?php } else { print "There are no messages in your Inbox"; } ?>
  37.  
  38. </table>
Add Comment
Please, Sign In to add comment