I strongly suggest everyone to use a database abstraction layer like
ADOdb. Makes your app more portable as well as more secure not to mention more easier to code
Tutorial is good and is highly recommended everyone to read. It's always good to know what's really happening even if you end up using the data abstraction. Very extensive tutorial also.