Advertisement
Medyy

Untitled

May 18th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. error_reporting(0);
  4.  
  5. $db_name = "meublardb";
  6. $mysql_user = "root";
  7. $mysql_pass = "";
  8. $server_name = "localhost";
  9.  
  10. $con = mysqli_connect($server_name, $mysql_user, $mysql_pass, $db_name);
  11.  
  12. if(!$con){
  13.     echo '{"message":"Unable to connect to the database."}';
  14. }
  15.  
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement