![]() | Web
professionals dedicated to making your web site work for you... |
|
|
Welcome to the December 2000 issue of the CyberArtisans monthly newsletter! Our goal is to present information that will be useful to you as a web site owner. If these newsletters are not useful to you, please forward this to a friend who will find it useful. To unsubscribe, follow the directions at the bottom of this email. Oops: Last issue was inadvertently numbered 4 instead of 5. Anyone catch that? Apparently not -- no emails about it. Good. So Santa brought you a database for your website, did he? Great, now all you have to do is figure out how to get the batteries in and try to decipher the manual. Many recently-built web sites include a database. This month we're going to examine the ways a database can be useful in a web site, and review the pros and cons of each use. First, however, let's look at how a database and a website co-exist, and why. A database stores and retrieves data. Nothing very special about that. What is special, however, is how a database retrieves data. Consider this: Suppose we have a database with data on 10 million houses and we ask it to find all the houses where door = "red" and faces = "west" and attic = "finished." In a couple of seconds (or less) it will find all the houses that have red doors, face west, and have a finished attic. And you could give it any combination of requirements and almost instantly get a list of the houses that meet those requirements. Information like this can power up your business, but only if that information is organized in a useful form. Databases (OK, well-designed databases) do that. One aspect of databases that is critical is the so-called user interface -- that is, the mechanism for letting a human use the database. For the convenience of humans (who have more limitations than computers when handling data), we usually use a carefully organized and labeled form to present the requirements to the database and a table (also carefully organized and labeled) to present the results. Now let's look at the other side -- the website. Websites have long been able to accept data using a form and present data using a table. Forms and tables, in fact, have been part of HTML almost from the beginning. So (the theory went), why not use a website form to send data to a database and a website table to present the data that the database generates. It worked, and from that discovery came dynamic websites. Now, here's what's so interesting about dynamic web pages: A single web page can look different every time it's presented. The database determines what's on the page. (Never mind how it's done -- you don't want to know unless you've been having trouble sleeping lately and need a good sleep-inducer.) There are a lot of variations on this theme:
You can play with a simple example of a dynamic website at http://www.cyberartisans.com/demos/. OK, enough already. As you can see, I can talk (or type) about dynamic
websites much longer than you can listen or read. Suffice it to say that If your website could benefit from some dynamic supercharging, call
or email us Jonathan Spencer |
| CyberArtisans Home Web Programming Services Clients Company Newsletter Contact Us |