• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database for website..... or probably not!

 
Jennifer Wallace
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for some ideas on how to do this and pointers to books or web resources here.
I have two lists "A" and "B", where for every value of A there is a value of "B". I want to set up a small search facility on my website. Just a little thing where for every value of "A" chosen, the corresponding value of "B" should be displayed.
How do I do this? Set up a database or flat file ? Either way, what tools are recommended and how to set this up? Do help!
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do by Javascript using arrays. But if the number of records are large then whole records should be loaded at front end rt? Then the page loads slow. In that scenario serailze the data and then deserilze it.
Another option when the user selects frm the frst select box send that to the DB, then query it and load the same page with the second select box
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic