Site Administration Page 8 - Setting Up Database Driven Websites |
All the work is done, let's see if it works! Make sure everyone has read permissions (chmod ugo+r) for these files, otherwise you'll get an Access Denied error message from Apache. You should now be able to use your web browser to access what you've just created. Assuming you're using lynx:
This should bring up a page that lists all the entries you added to the database earlier. For example:
Select the Add new entry link, and you should go to a page that allows you to enter data:
Enter something and select the Submit link. This submits the filled-out form back to the same PHP script. This time, there are values in the two fields name and phone, so these get added to the database. You should see a message telling you something was added to the database. Select the Back to index link to confirm that your new entry is in fact there. If everything worked, then congratulations! You've completed this howto and built your first web database application! It was pretty easy wasn't it?
blog comments powered by Disqus |