Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 21st, 2003, 06:21 PM
jag5311 jag5311 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 69 jag5311 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 37 sec
Reputation Power: 5
Coldfusion + Access 2002 scenario

Hi all,

I posted this a while ago at the coldfusion forums at macromedia, but I love getting second opinions (though I don't have 1 yet at MM).

Well here is my situation. I am working on a site that will allow the owner to manipulate information using forms online so it will affect the whole website. Its a gift basket website and I currently have built a database (not finished) in access 2002. I have a table (content_list) that includes a column for an autonumber itemID and a column for itemname. Well, it is 194 items long (these are the individual items that would go in a basket). The itemID has a relationship in another table called basket_contents where a column is also called itemID. The table basket_contents also includes a column called basketID which matches a particular basket. Anyways, I plan on using the information included in my content_list to display via <li> tags. You with me?

So here is how the plan should work right now.
In the table, content_list, each item has its own id. When I want a particular basket to have a certain set of items, I have to type it out like this

Table: basket_contents

ID----------- basketID------------itemID (remember, there are 194 items)
-----------------------------------------------
1 ------------- 1-------------------- 5
2 ------------- 1-------------------- 10
3 ------------- 1-------------------- 17
4 --------------1 ---------------------22
5---------------1 ---------------------35
6---------------2 ---------------------1
7 ---------------2 ---------------------67
8 ---------------2 ---------------------88
9 ---------------2 ----------------------92

Let me explain what is happening. basketID=1 is named baby basket. Well, I want baby basket to have items number 5, 10, 17, 22, and 35, which could represent beefsticks, cheese rounds, truffles, candy, and wafers. Then basketID=2 wants a different set of items, specifically items 67, 88, and 92.
I took this route so I didn't have to have repetition in the database and if one item needed to be changed, you wouldn't have to do it on 20 different baskets.
What I want to know is, how can I take this method, and using an insert/update coldfusion form, make it so the owner can log on to the maintainance site and figure out what the name of certain items are and which baskets are holding them. I just don't know how to go about doing something like this, especially using numbers as the main means of matching with certain baskets. IMO, as the one updating the content, you would almost have to have a list of the id's and names in front of you just to properly give the appropriate baskets there proper contents. I am not sure if its possible to do something in the form like, value="1,5,14,44,64" or what? Who knows, I may have made this more confusing then it needed to be.
Here is a link of the whole database so far, access database. Maybe this will give you more insight into my structure and relationships.
http://www.btkdesigns.com/something.mdb I THINK YOU HAVE TO SAVE IT TO YOUR HD FIRST, i tried hitting OPEN and it didn't work. It is (640kb) sorry for the file size, I didn't realize it was that big.

Also, on my content_list table, I had to remove a few records because the owner reviewed my list and had to change a few things and accidently had duplicates, so I removed them, but the autonumber didn't refresh, so a few numbers skip. Is that a problem?
Thanks for any help you can provide

Bryan

Reply With Quote
  #2  
Old September 21st, 2003, 07:59 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Click here for more information.
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,716 r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level)r937 User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 6 Days 18 h 25 m 10 sec
Reputation Power: 986

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Coldfusion + Access 2002 scenario


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway