Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. $host="localhost";
  4. $login="root";
  5. $senha="";
  6. $banco="";
  7.  
  8. $conecta = new mysqli ($host, $login, $senha, $banco);
  9.  
  10. if ($conecta->connect_error){
  11. die("Conexão falhou:" .$conecta->connect_error);
  12. } else {
  13. echo "Conectado<br>";
  14. }
  15.  
  16. $conecta->close();
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement