Guest User

Untitled

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <?php
  2. echo '<table>';
  3. while($rows = mysql_fetch_array( $notes ))
  4. {
  5. echo '<tr class="noteTr">
  6. <td class="noteFile">
  7. <a href="notes/' . $rows['thenote'] . '" class="notefilehref">' . $rows['thenote'] . '</a>
  8. </td>
  9.  
  10. <td class="noteDate">
  11. ' . $rows['date'] . '
  12. </td>
  13.  
  14. <td class="noteUsername">';
  15. $getName = mysql_query("SELECT username FROM bitfile_members WHERE username='$rows[username]'") or die(mysql_error());
  16. $Name = mysql_result($getName, 0);
  17. echo $Name;
  18. '</td>
  19.  
  20. <td class="noteRows">
  21. ' . $rows['rows'] . '
  22. </td>
  23.  
  24. <td class="noteRowsText">
  25. rows
  26. </td>';
  27.  
  28. if(empty($rows['comment']))
  29. {
  30. echo '
  31. <td class="noteComment">
  32. <img src="gfx/red-button.jpg" class="noteImg">
  33. </td>';
  34. }
  35. else
  36. {
  37. echo '
  38. <td class="noteComment">
  39. <img src="gfx/green-button.jpg" class="noteImg">
  40. </td>';
  41. }
  42.  
  43. echo '
  44. <td class="noteReport">
  45. <a href=""><img src="gfx/report.gif" class="noteImg_report" title="Report this note"></a>
  46. </td></tr>';
  47. }
  48. echo '</table>';
  49.  
  50. ?>
Add Comment
Please, Sign In to add comment