salve a tutti
Sto creando un database tramite php questo è il code:
Codice PHP:
$connessione = new mysqli("localhost","root","");
if(!
$connessione->connect_error){
$sql="CREATE DATABASE $namedb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci";
$connessione->query($sql);

ma non capisco il perche mi da questo errore:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '64221 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' at line 1

Mi date una mano per favore grazie.