file 01-connection.php
$mysqli = new mysqli("localhost","","world");
if($mysqli->connect_errno){
echo "connect is error" .$mysqli->connect_error;
exit;
}
$mysqli->set_charset('utf8');
include_once "01-connection.php" ;
$svl = "CREATE TABLE people(
id int PRIMARY KEY AUTO_INCREMENT,
familly varchar(256),
sex enum('f,m'),
issingle boolean DEFAULT 1
);";
if($mysqli->query($svl)){
echo "this table was created";
}else{
echo "this table is emp";
}