Advertisement
nickmcski

Untitled

Jul 4th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <table class="main_management" align="center">
  3. <tr bgcolor="#2B6CAD">
  4. <th width="250px">Title</th>
  5. <th width="700px">Content</th>
  6. <th width="250ps">Creator</th>
  7. <th width="250px">Edit</th>
  8. </tr>
  9. <?
  10. $color1 = "07A81A";
  11. $color2 = "12E62B";
  12. $count = 0;
  13. while($row= mysql_fetch_array($results)){
  14. $count++;
  15. $title = $row['title'];
  16. $content = $row['Content'];
  17. $editor = $row['editor'];
  18. $que_id = $row['id'];
  19. if($count%2 == 1){
  20. $color = $color1;
  21. }else{
  22. $color = $color2;
  23. }
  24.  
  25. echo"<tr bgcolor='$color'>";
  26.  
  27. echo"<td>" . $title . "</td>";
  28. echo"<td>" . $content . "</td>";
  29. echo"<td>" . $editor . "</td>";
  30. echo"<td><a href='edit_main.php?edit=1&id=$que_id'>Edit</a></td>";
  31. echo"</tr>";
  32.  
  33. }
  34.  
  35. ?>
  36. <tr>
  37. <td colspan="4">
  38. <form name="editmain" action="edit_main.php" method="get">
  39. <center>
  40. <input type="hidden" name="editing" value="2" />
  41. <input type="submit" name="Create new post" value="Make new post" />
  42. </center>
  43. </form>
  44. </td>
  45. </tr>
  46. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement