Adobe Dreamweaver Forums



Last 10 THreads :         GetFlashVars (Last Post : kaur.jsln@gmail.com - Replies : 0 - Views : 1 )           »          Creating PDF (Last Post : PJR - Replies : 1 - Views : 2 )           »          IE browser (Last Post : Karlhevera - Replies : 2 - Views : 4 )           »          Tag Heuer Link Womens Watch WT131C.BA0558 Recommendation DiscountWatches (Last Post : hjfakn@21cn.com - Replies : 0 - Views : 1 )           »          Creating Timetable using Datagrid (Last Post : anirudhs - Replies : 1 - Views : 3 )           »          Movado Faceto Mens Watch 0605042 Recommendation Discount Watches (Last Post : hjfakn@21cn.com - Replies : 0 - Views : 1 )           »          Contributor's Copies (Last Post : ThinkInk - Replies : 1 - Views : 3 )           »          You cannot perform this action in this region of thepage (Last Post : ThinkInk - Replies : 1 - Views : 2 )           »          Div tag on each other (Last Post : elakin - Replies : 11 - Views : 12 )           »          I'm in tears and ready to quit (Last Post : Deaf Web Designer - Replies : 75 - Views : 76 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver Php Development
 
Tags:

Reply
  #1 (permalink)  
Old 07-21-2008, 09:41 AM
Design_Stage@adobeforums.com
 
Posts: n/a
Diggs:
Default Re: How do I add a most recently addedproduct page... using products from more than onedatabase table?

If you're looking at learning a bit more about database design (looking at your description of what you've done in creating a separate table for each category of item sold sounds like you're approaching it as though it was a flat-file rather than a relational database), there's a few books that I could direct you to:

Beginning Database Design (ISBN 978-1590597699)
Database Design for Mere Mortals (ISBN 978-0201694710)
Databases Demystified (ISBN 978-0072253641)
Absolute Beginner's Guide to Databases (ISBN 978-0789725691)

I've also got an older book that's always sitting by my desk called Dreamweaver MX Databases (ISBN 978-0782141481), which I still reference regularly - chapter 3 on coding practices and chapter 5 on database design provide very good overviews of the subject.

There's also a Database Development for Dummies, but I'm not a huge fan of the series where they're tackling technical subjects.

Without knowing the data you're modeling, it's quite difficult to make generalisations, but I'd probably be looking at a single table called 'Product' (which contains all the product records), and which had in it a boolean for 'new item' and for 'on sale' (you could then use SQL to filter out new and/or sale items when you create your recordset). I'd then have a look up table called 'Categories' which held the values 'necklace', 'handbag', 'belt', and 'purse' which the Product table could then reference to identify.

Breaking your data down into a logical structure like this is called 'normalisation' (see <http://en.wikipedia.org/wiki/Database_normalizati on)> - although it's a bit technical. There's a simpler practical explanation of a similar query to yours at TechRepublic (http://articles.techrepublic.com.com...1-5288500.html), which uses MS Access, but don't worry about that as it's teaching a concept which is applicable no matter what the database server.
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk