Speedysnail6

New row after 10 columns

Jul 23rd, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. $result = mysqli_query($con,"SELECT * FROM table");
  3.  
  4. echo '<table width="100%" border="1px"><tr width="100%">';
  5.  
  6. while($row = mysqli_fetch_array($result))
  7. {
  8. ?>
  9. <td width="10%"><?php echo $row['Name']; ?></td>
  10. <?php
  11. }
  12. echo "</tr></table>";
  13.  
  14. mysqli_close($con);
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment