Re: My php/MySQL Generator Search
have a look at this PHP/MySQL code generator: MyDBO
It is a free generator anyone may use personally or commercially that can create a set of class files corresponding to your database structure.
The generation is done via a wizard that make it possible to select tables, set foreign keys ...
Moreover, code is generated from templates, which make it possible to create your own templates as well.