Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="main_management" align="center">
- <tr bgcolor="#2B6CAD">
- <th width="250px">Title</th>
- <th width="700px">Content</th>
- <th width="250ps">Creator</th>
- <th width="250px">Edit</th>
- </tr>
- <?
- $color1 = "07A81A";
- $color2 = "12E62B";
- $count = 0;
- while($row= mysql_fetch_array($results)){
- $count++;
- $title = $row['title'];
- $content = $row['Content'];
- $editor = $row['editor'];
- $que_id = $row['id'];
- if($count%2 == 1){
- $color = $color1;
- }else{
- $color = $color2;
- }
- echo"<tr bgcolor='$color'>";
- echo"<td>" . $title . "</td>";
- echo"<td>" . $content . "</td>";
- echo"<td>" . $editor . "</td>";
- echo"<td><a href='edit_main.php?edit=1&id=$que_id'>Edit</a></td>";
- echo"</tr>";
- }
- ?>
- <tr>
- <td colspan="4">
- <form name="editmain" action="edit_main.php" method="get">
- <center>
- <input type="hidden" name="editing" value="2" />
- <input type="submit" name="Create new post" value="Make new post" />
- </center>
- </form>
- </td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement