Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysql_host='localhost';
- $mysql_user='root';
- $mysql_password='root';
- if(!mysql_connect($mysql_host, $mysql_user, $mysql_password)){
- die ('Not connected to database');
- }
- else {
- if(mysql_select_db('Northwind')){
- echo 'Connection success';
- }
- else {
- die('Not connected to db');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment