Guest User

Untitled

a guest
Nov 11th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. $username="id12345_studoob";
  3. $password="12345678"; //account password
  4. $host = "localhost";
  5. $dbname="id12345_studoob";
  6.  
  7. $connection = mysqli_connect($host,$username,$password,$dbname) or die("Error " . mysqli_error($connection));
  8. if(! $connection ) {
  9. die('Could not connect: ' . mysql_error());
  10. }
  11. echo 'Connected successfully';
  12. mysqli_close($connection);
  13. ?>
Add Comment
Please, Sign In to add comment