Create database from PHP code or through phpMyAdmin

This is the 1/2 database that I created through the website tools.

I have another database available to be created. but since we are learning mysql and php at school, the teacher wants us to create it through a query:

Is it possible to create a database from php code?
$mysqli->query("CREATE DATABASE id13800077_testDB");
It looks like it doesn’t work!

It is the same error also from phpMyAdmin.

1 Like

Sorry this sadly isn’t available on our platform.
If you do it locally with XAMPP, WAMP or similar it’ll work fine.