connect_errno) { // echo "Failed to connect to MySQL: (" . $conn->connect_errno . ") " . $conn->connect_error; // } // else { // debug("Successful Connection"); // // debug($conn->host_info); // } // if db connection success $conn->select_db('ps2020') // if($conn->select_db('ps2020')) { debug("Using ps2020"); } // else { error($conn->error); } /*----- Include the following into html/php script -----*/ // $result = $conn->query("SELECT * FROM table"); // if($result) { // while ( $row = $result->fetch_assoc() ){} // } /*------------------------------------------------------*/ ?>