This is example of a simple database management script that can be used to manage databases and tables.
- Add more queries (select, update, delete)
- Security checks while inserting data
- insert: Insert data into a table.
php app.php insert {database} {table} {key1=value1,key2=value2,...} - checkTable: Check if a table exists.
php app.php checkTable {database} {table} - createTable: Create a table.
php app.php createTable {database} {table} - connect: Connect to a database.
php app.php connect {database} - createDatabase: Create a database.
php app.php createDatabase {database}