So i want to write a php script who checks in the data base (in localhost, user=\"root\", pass=\"\") \"data1\" exists, and if is not, create it. Please thanks for any help y
Send the following to mysql from your php code :
CREATE DATABASE IF NOT EXISTS YourDB;
Documentation : http://dev.mysql.com/doc/refman/5.0/en/create-database.html