Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. $link = mysqli_connect('localhost','user','pass');
  2. mysqli_select_db($link,'northwind');
  3.  
  4. if (mysqli_connect_errno())
  5. {
  6.    echo "Failed to connect to MySQL: " . mysqli_connect_errno();
  7. }
  8. else
  9. {
  10.     echo "Entrou";
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement