Definitely, a good point to start developing the blog application that I mentioned in the introduction is with defining a pair of MySQL processing classes. These will allow interaction with the database server in a seamless way. We're creating these classes because we want to have at our disposal a programmatic mechanism that facilitates the insertion, update and deletion of blog entries with minor hassles. All right, now that you know why I decided to define these simple MySQL wrappers, take a look at their respective definitions. They're as follows: // define 'MySQL' class // define 'Result' class As you can see, the two MySQL processing classes listed above are indeed very easy to follow, not only because of their intrinsic definitions, but because I used them in some of my previous PHP tutorials, published here on the prestigious Developer Shed network. The previous MySQL wrappers provide connectivity to the mentioned database server and perform some useful tasks with it, such as running queries, seeking and counting database rows, finding insertion IDs and so forth. As you'll see shortly, this group of database-related tasks will come in handy for processing diverse blog entries in a straightforward way. So far, so good. After building the two MySQL processing classes that you learned a few lines above, it's time to take the next step toward the development of the blog application that I discussed in the beginning. As you may have guessed, this step will consist of creating both a programmatic model of a typical blog entry via a simple PHP class, and building a blog interpreter which will be responsible for adding, updating and deleting these entries by implementing the homonymous pattern in conjunction with MySQL. Sounds fairly simple, right? All these crucial topics will be covered in the following section, so keep reading to learn more about them.
blog comments powered by Disqus |