gilsonfilho

Untitled

Jun 29th, 2021
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. // conexão com banco de dados
  3. $servername = "localhost";
  4. $username = "Gilson";
  5. $password = "";
  6. $db_name = "test";
  7.  
  8. $connect = mysqli_connect($servername, $username, $password, $db_name);
  9.  
  10. if(mysqli_connect_error()):
  11.     echo "falha na conexão: ".mysqli_connect_error();
  12. endif;
Advertisement
Add Comment
Please, Sign In to add comment