Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="localhost";
- $user="root";
- $password="";
- $dbname="database";
- $con = new mysqli($host, $user, $password, $dbname);
- if ($con->connect_error) {
- die("Connection failed: " . $con->connect_error);
- }
- else
- echo "Connected successfully"; ?>
- <?php
- include 'conexao.php';
- if ($con->connect_error) {
- die("Connection failed: " . $con->connect_error);
- }
- else
- echo "Connected successfully"; ?>
Add Comment
Please, Sign In to add comment