From one of the gurus in the PHP world comes a new article on the PHP DevCenter in the "PHP Foundations" series. John Coggeshall presents this time how to use MySQL from PHP.
For those of you who have been reading my column on a regular basis since it began (thank you, I'm aware of at least a few of you), way back in 2001 I provided you with a flow diagram outlining how PHP works within a web server. Back then, the diagram was pretty generic, but today I'll revisit it in more detail to describe a database-driven architecture.
He steps through the fundamentals, showing the reader how to connect, select the database, and sending the query to either recieve a result set, or simply update content already in the database. this article is a good, clean example of how simple topics, presented correctly can be much more useful than all of the "here's the code, now deal with it" tutorials on the web today...




