SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function conectardb(){
  2.         $conexao = mysqli_connect($host, $usuario, $senha, $banco);
  3.         //testar a conexao
  4.         if (mysqli_connect_errno()) {
  5.             echo "FALHA NA CONEXÃO";
  6.         }
  7.  
  8.         return $conexao;
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top