Before we get started, I want to talk a little about my idea of tutorials. When I write a tutorial, it is not my goal to produce a complete working piece of code. Sure, a lot of times there will be a final product that you could use, but why would you want to when you can write your own code? The tutorials I write I meant to introduce concepts and new ideas to you. Maybe show you some aspect of PHP that you didn’t know about. So, all I ask is that you don’t skip to the last page of this tutorial and snap the code and expect it to solve all your problems. Read through the tutorial and incorporate the ideas given here with your own and you will have a much better final product.
Let’s talk a minute about the concepts behind making a news system with PHP and MySQL. First off, the primary goal is to display news. So, the code should, before it does anything else, display news. On the backend, we will have a table to store all this news. We should probably store the news itself, a title for the news, and a date the news was published. Along with that, we will also have a unique id for each piece of news.
|