Advertisement
Guest User

Untitled

a guest
Jun 10th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. $username="username";
  4. $password="passwordname";
  5. $database="databasename";
  6.  
  7. mysql_connect(localhost,$username,$password);
  8.  
  9. @mysql_select_db($database) or die( "Unable to select database");
  10.  
  11. ?>
  12. // localhost is normal host for phpmyadmin, your host may have specified the host you should be using, if not just use 'localhost'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement