Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2. $mysqli = new mysqli("localhost", "", "", "stc", 3307);
  3. if ($mysqli->connect_errno) {
  4. echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
  5. }
  6.  
  7. echo $mysqli->host_info . "\n";
  8. $mysqli->close();
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement