DALG (Data Access Layer Generator) for PHP
This tool generates php code for accessing a mysql database, from sql queries.
Click to download executable with example screenshots.
These are the screenshots:
All data access methods:

A data access method that inserts a record and returns its id.

Preferences about code generation:
The final php code (data access layer):
