|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Another Brain Teaser
Just though you all might enjoy this thiis code challange to test yourselves.
you have a website and you want to track which pages you have "certified final build" basicly the pages your sure you error checked and debugged You have a SQL or Flat files (your choice) DB but dont want to clutter it with a million fields or tables for the many pages you may have. You decide the best way would be to create a directroy file list and next to it have a form check box when you load the page any check boxes you check would remain checked on future visit the most obvious way woud be to creeat a loop with each file displayto add a check box but how will beable to set it to select the righr check boxes ifyou add or remove pages without creating a huge DB for each individual page. ________________________________________ How i woud do it to get this fun started. the names of the boxes would be generated dynamicly, maybe some heavity truncated/crushed version of the file path, if checked its value would be 1 in a singe table of my DB id store a contatonated list if the check box and value to the effect of Clasi-1.Resu-0.inde-1... then when beining the list on the page idd pull this long text fro the DB Explode it on the '.' then explote it on the '-' if check box=exploded[0] then its vaule is = exploded[1] |
|
#2
|
|||
|
|||
|
RE: Another Brain Teaser
I shoud point out you dont need to make any real code here, this is a way to strech your brain, this is theory, the idea is to try and fiure out a complex logic problem here.
this is not a code request, or i would have posted it there, this is a experiment in code theory |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Another Brain Teaser |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|