ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 29th, 2002, 06:12 AM
vaio vaio is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 1 vaio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Scenario and ASP dilemma

Hi there, I have been reading the tutorials on database table
relationship,

i currently have a immense problem...
which relates more to the asp input and update pages.

Basically what i am trying to do is create a asp form where i can allow admin staff to enter a record and relate to another record in another table.
And this will clearly be displayed on the web page for surfers to view. I have essentially created the many to many relationship with the additional table comprising of both primary keys from the tables.

The difficulty is where i am allowing the admin user to enter a record and then ideal i would like then to be taken to another page where they have a list of records and along side then a checkbox for each record , where they can click on the check box and relate those records to the main table. which will be obviously stopped in the new table (sorry if this is confusing)
you mention in one of your tutorial ..

'An excellent example of this is right here at DevArticles. An article can have many related topics and a topic can be related to many articles.'

I have searched DevArticles website for this tutorial however i did not find any on this area. If you an shed some light into this issue preferably with an example or forward me scripts that will assist me in completing this problem this will be most appreciated and i will be very grateful for your help indeed, as i have been trying to sort this problem out for months now,
and i keep on putting it aside due to its complexity, and i think now its about time i learnt and overcame this problem, however with some like yourself assisting me can make this possible, i also think this scenario is an issue other developer face and would be useful to display a tutorial on your website regarding this.

Please let me know what you can do for me.

Kind Regards

Vaio

Reply With Quote
  #2  
Old October 29th, 2002, 06:13 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
the quote you have taken from my article is an example of a many-to-many relational database table. It isnt talking about an article that we have.

Basically you want to have a many-to-many relational database.

So you have a record and you want to select related records??

what you need to do is create a field called 'RelatedRecords' in your database table. Then once you have done that you need to suply the related records. when you select the other records, you should store the ids of the records in the new field something like this.

5,9,97,32,45,76

So now in your database, you have the ids of the related records, if you want to relate them, you split this into an array, delimetered by ',' and you go though all the records, and see if the id of each record matches an id in the array.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Scenario and ASP dilemma


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 4 hosted by Hostway
Stay green...Green IT