Today I'm getting really close to the final release of a PHP Code generator.
The tool generates all code needed to connect to and work with a MySQL database. It does this from the actual sql script that generates the database.
This means that you can with two clicks generate a database in mysql and get all the OOP code you need to work with it. :)
Yup, OOP... The generated code is based on the DAO & VO/TO patterns. Enough said here, you can follow the release discussion here: Guru Gab - Not a tutorial, a brand new utility in that thread there are links to the actual tool as well.