Guest User

Untitled

a guest
Jan 18th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $host = 'localhost';
  2. $user = 'root';
  3. $password = '';
  4. $database = 'database';
  5.  
  6. $connect = mysqli_connect($host, $user, $password, $database);
  7.  
  8. if(!$connect){
  9. die ('cannot connect field: '.mysqli_connect_error());
  10. }
  11. else {
  12. echo 'database is connected';
  13. }
  14. ?> ```
  15. please help me !
Add Comment
Please, Sign In to add comment