|
From the homepage of the gate, click on the menu of left “My projects”.

Then click on the button “NEW PROJECT” in bottom of the page.

You arrive then on the page of creation of a new project.
Inform all fields necessary to the creation of your project.

Example above:
|
Name of project
|
My first project
|
Description
|
First use of PHPSIMPLEDB
|
|
Sever
|
locahost
|
Database
|
Test
|
|
User
|
root
|
Path to out
|
c:/test/
|
The way of exit represents the place or the files of PHPSIMPLEDB will be created. The repertory must exist.
Caution: all the files or repertories present in this repertory will be removed during the generation.
Then click on the button “to record” in bottom of the page.
Once your project created, you must set up all the rules binders the objects.
For example, in a site of real advertisements, the products are related to the people. Thus we will have of a connection of the object produces with the object anybody.
From the card of the detail of the project, to select the menu “2) Rules and objects” in the stringcourse of the center in the medium.

Since it is a new project, leave the selection positioned on “For all the tables”. Click then on the button of “Generation”.
A “popup” of confirmation appears informing you of the crushing of the existing objects in the project appears. Click on “OK” to validate.

The list of the objects are now fed of the objects of the database.
We now will bind the object “produced” to the object “users” via the field “users_id”.
Select the object “produced”.

Select the field “users_id”.

Then change the type of field by selecting “connection towards object”.

Then select the object “users” in the list “Connection towards the object”.

The connection is now established between “products” and “users”, go in the interface of generation by selecting the menu “3) Generation” in top.

The interface of generation allows the creation of the files (objects and collections). Use the button “Generation” to launch the process.

The report of generation is posted. The list of the files created there is indicated.
The files are generated with the site well informed in detail project, Ici in “C: /test/”.
Open the following file using the Windows explorer (if Windows).

You will find in the file according to the list of the files to include in your project.
In order to be able to use PHPSIMPLEDB in your code, you must include the file “phpsimpledb.class.php” in your project.
Use the following code to create an authority of PHPSIMPLEDB.
|
<?php
include_once( 'phpsimpledb.class.php' ); Global $oBDD ; $oBDD = new PHPSIMPLEDB(); ?>
|
You are now ready to use the objects and the collections of PHPSIMPLEDB.
Use documentation on line to help you in this http://www.phpsimpledb.com
|