To highlight how easy it is to do database backed websites I wrote a simple guestbook using PHP
Member rating: No Rating | Words: | Submitted: Tue Jun 20 2006
On the left is an image preview of every page of this document, and below are the first 150 words with formatting removed:
The Guestbook To highlight how easy it is to do database backed websites I wrote a simple guestbook using PHP. The code will be examined here to explain how the PHP code works and why I did certain things. One of my goals in writing database backed websites is to keep related pages and functions as simple as possible, but where possible to use a single file to make troubleshooting easier. This might make things more confusing at first, but it will work better in the long term. The application is very simple. When you go to the page it loads the "Add A Message" form and then connects to the database to get all the guestbook entries. Once is has selected the data it builds the html to display the output and delivers it to the browser. When someone fills out the form and hits the submit button, the form...

