I use three class vars and five methods to connect, query, insert and update a MySql database. This cleans up your source code and decreases script development time. The focus was on displaying MySql data so I could take advantage of Dynamic webpages. This class has scripts written to work with it too. The only thing lacking is a complex input validation. I used strip tags and special chars for basic protection. I included directions on how to add and use your own validation method.