Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $link = mysqli_connect('localhost','user','pass');
- mysqli_select_db($link,'northwind');
- if (mysqli_connect_errno())
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_errno();
- }
- else
- {
- echo "Entrou";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement