View sourcecode

The following files exists in this folder. Click to view.

mysqli.php

1 lines ASCII Unix (LF)
1
<?php

include "config.php";

echo "<p>Trying to connect through mysqli...";

$mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);  
                                                                   
if (mysqli_connect_error()) {                                      
     echo "Connect failed: ".mysqli_connect_error()."<br>";          
        exit();                                                         
}