Guest User

Untitled

a guest
Aug 26th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2. $hostname="localhost"; //local server name default localhost
  3. $username="abood";  //mysql username default is root.
  4. $password="";       //blank if no password is set for mysql.
  5. $database="gijoe";  //database name which you created
  6. $con=mysql_connect($hostname,$username,$password);
  7. if(! $con)
  8. {
  9. die('Connection Failed'.mysql_error());
  10. }
  11. mysql_select_db($database,$con);
  12. ?>
Add Comment
Please, Sign In to add comment