PHP data access example
This example uses a simple TODO list to demonstrate how to access a database using PHP. The application is included with the Zero Examples plugin. The following steps show how to access the example:
- From the File menu, click New > Example...
- Click Zero Examples > Project Zero Example Projects.
- Check the box next to PHP Data Access. A new project named PHP.Data.Access is created in your workspace.
- This example can use either Derby or MySQL as the database. The README.txt file found in the root of the project explains how to enable the two configurations.
Once the application setup is complete, launch the application by right-clicking the project, Run As > Project Zero Application. A successful launch should display the following string in the Console view: "...\PHP.Data.Access running on port 8080". Now open your browser to
http://localhost:8080/index.html. Your screen should look like the following snapshot.
The following table explains how the various user actions are handled by the application.