|
DashingDB Documentation Learn to use DashingDB Within Minutes |
How to Define Tables & Fields?When you download the library, you would see two folder one is library other is examples. Open library folder and open define.php in some text editor. When you open define.php you would observe the following code:
To define tables edit the following variable:
$GLOBALS['tables'] = "table_name_1,table_name_2"; Add as many tables you want seperated by comma (,), once you run the script tables would be automatically created in database. Similarly for fields/columns: $GLOBALS['fields']['table_name_1'] = "field_1,field_2,field_3";
We place the tablename as key and similarly like tables we put as many fields as we want seperated by comma (,).
|
© 2017 DashingDB. |