With the procedural approach, the mysqli_query() function is called for execution, into which the connection object and the SQL command to be executed are passed:
$conn = mysqli_connect("localhost", "root", "password"); mysqli_query($conn, $query);
function mysqli_query() returns true or false.

Create a MySQL database on PHP. Function example
May 4, 2022