Code-Samples/php/Php-createtable2.php Using MySQLi for Table creation connect_error) { die("Connection not established: " . $connection->connect_error); } $query = "Use Hospital"; $connection->query($query); // Creating Table $query = "CREATE TABLE Patient ( patient_id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY, patient_fname VARCHAR(50) NOT NULL, patient_lname VARCHAR(50) NOT NULL, patient_age INT(10) );"; if ($connection->query($query) === TRUE) { echo "Successful database creation"; } else { echo "Unable to create database " . $connection->error; } $connection->close(); ?