Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. echo "<td>", $orderby1[0], "</td><td>", $orderby1[1],"</td>";?>
  2.  
  3. <?php
  4. $databaseconnection = mysqli_connect('localhost','username','password','db_name')
  5. or die('Error in connecting the database');
  6. $query = "SELECT * FROM Table1";
  7. $result = mysqli_query($databaseconnection,$query)
  8. or die('Error in querying the database');
  9. while($row =mysqli_fetch_array($result)){
  10. //Do what ever you like
  11. echo "<tr><td>".$row['slno']."</td><td>".$row['name'];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement