Advertisement
Guest User

Untitled

a guest
Dec 18th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. $db_host='localhost';
  3. $db_username='root';
  4. $db_password='';
  5. $db_name='testdb';
  6. $con=mysqli_connect("$db_host","$db_username","$db_password") or die ("couldnt able to connect with database");
  7. mysqli_select_db("$con", 'testdb')or die ("No database");
  8. echo "succesful connection";
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement