Untitled

mail@pastecode.io avatar
unknown
plain_text
11 days ago
311 B
0
Indexable
Never
<?php
$servername = 'localhost';
$username = 'root';
$password = '';
$dbname = 'exemplo_crud';

//criar conexão 
$conn = new mysqli($servername,$username,$password, $dbname);

// testar se a acenexão funciona 
 if($conn->connect_error){
    die ("Conexão falhou" . $conn->connect_error);
 }

?>
Leave a Comment