How to create a new database in php with SQLite3 ?$db = new SQLite3($dbname);
just open, but I want to create if not exist.
thanks you for your help.
To create you do use the new
statement -
//create or open (if exists) the database
$database = new SQLite3('myDatabase.sqlite');
If you have named a database that doesn't exist it should get created.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With