Guest User

Untitled

a guest
Jan 24th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2. $mysql_host='localhost';
  3. $mysql_user='root';
  4. $mysql_password='root';
  5.  
  6. if(!mysql_connect($mysql_host, $mysql_user, $mysql_password)){
  7. die ('Not connected to database');
  8. }
  9. else {
  10. if(mysql_select_db('Northwind')){
  11. echo 'Connection success';
  12. }
  13. else {
  14. die('Not connected to db');
  15. }
  16. }
  17. ?>
Add Comment
Please, Sign In to add comment