Advertisement
Guest User

Ex5

a guest
Sep 16th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. include_once("connect.php");
  4.  
  5. $sql_query = 'SELECT * FROM teachers';
  6.  
  7. $result_from_db = mysqli_query($myconnection, $sql_query);
  8.  
  9. print_r($result_from_db);
  10. echo "<br/>";
  11.  
  12. if (mysqli_close($my_connection)) {echo "Connection closed. <br/>";}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement