Guest User

Untitled

a guest
Nov 12th, 2017
86
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. $servername = "mysql:dbname=cadastro; host=localhost";
  3. $username = "root";
  4. $password= "";
  5.  
  6.  
  7.  
  8. try{
  9. $conn = new PDO($servername,$username,$password);
  10. }catch (Exception $e){
  11. echo "<h2>PROBBLEMA NA CONEXÃO COM BANCO DE DADOS </h2>";
  12. }
  13.  
  14.  
  15.  
  16. ?>
Add Comment
Please, Sign In to add comment