<?php
//Connect to database
$mysqli = mysqli_init();
$mysqli->real_connect("127.0.0.1","root","","my_db");
if(mysqli_connect_errno())
{
echo mysqli_connect_error();
}
// Create table in my_db database
$sql = "CREATE TABLE Persons
(
FirstName varchar(15),
LastName varchar(15),
Age int
)";
$mysqli->query($sql);
$mysqli->close();
?>