<!DOCTYPE html> <html> <head> <title>DB test</title> </head> <body> <?php require_once 'connector.php'; ?> <?php DatabaseConnector::$host = "localhost"; DatabaseConnector::$username = "******"; DatabaseConnector::$password = "******"; DatabaseConnector::$dbname = "myDatabase"; $conn = new DatabaseConnector(); $rs = $conn->Query("SELECT * FROM `users`;"); while ($result = mysqli_fetch_assoc($rs)) { var_dump($rs); } var_dump($conn->affected_rows()); var_dump($conn->ConnectError()); var_dump($conn->ConnectErrorNo()); /** * And more tests */ ?> </body> </html>