Advertisement
chaminga

Untitled

Jul 29th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <?php
  2. // Create connection
  3. $con=mysqli_connect("example.com","peter","abc123","my_db");
  4.  
  5. // Check connection
  6. if (mysqli_connect_errno()) {
  7. echo "Failed to connect to MySQL: " . mysqli_connect_error();
  8. }
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement