Advertisement
septian_kappy

init

Oct 8th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. $host = "localhost";
  5. $user = "myapps";
  6. $password = "myapps";
  7. $dbname = "userdb";
  8.  
  9. $con = mysqli_connect($host,$user,$password,$dbname);
  10.  
  11. if(!$con)
  12. {
  13.     die("Error in database connection". mysqli_connect_error());
  14.    
  15. }
  16. else
  17. {
  18.     echo "<h3>Database Connection Success...";
  19. }
  20.  
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement