Guest User

Untitled

a guest
Jan 15th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "localhost";
  4. $username = "root";
  5. $password = "123456a";
  6.  
  7. $con = mysql_connect($servername, $username, $password);
  8.  
  9. if (!$con)
  10. {
  11. die('Could not connect' .mysql_error());
  12. }
  13.  
  14. mysql_select_db("sampletest", $con);
  15.  
  16. ?>
Add Comment
Please, Sign In to add comment