Advertisement
seraalfa2

mysql extension

Jul 8th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $user = "root";
  4. $password = "";
  5. $db = "php_kita";
  6. $con= mysql_connect($host, $user, $password);
  7. mysql_select_db($db);
  8.  
  9. $query = mysql_query(“SELECT * FROM tabel_user”);
  10. $hasil= mysql_fetch_assoc($query);
  11.  
  12. print_r($hasil);
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement