Advertisement
Guest User

Untitled

a guest
Mar 29th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2. /**
  3. * IDE:Notepad++
  4. * User:Lin
  5. * Date:2018/03/29
  6. * Time:下午9:00
  7. */
  8.  
  9. $severname="localhost";
  10. $username="test";
  11. $password="test";
  12.  
  13. // Create connection
  14. $conn = new mysqli($severname,$username,$password);
  15.  
  16. // Check connection
  17. if ($conn->connect_error){
  18.     die("Connection failed:".$conn->connect_error);
  19. }
  20. echo "Connected successfully";
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement