Re: much help needed NEWBIE alert

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33621
interpreted = N
texte = > hopefully others jump in since there seems be several issues here, and I won't > have time to figure them all out. You said it finds *all the movies, but when > I try it it finds zero movies.I may have misspoke. I meant that it will find them if they are checked, either individually or in groups. If I select ALL the movies, it does find all of them, and the little tester code I put in at the bottom of the page to check the formvariables shows Code=XXXX for each movie.If I don't select a movie at all, it finds nothing.The search by movie code seems to work OK. It's the search by theater that's having problems.> The [showif [name]=Code]...[/showif] inside the > [formvariables] context with, > I believe, only show its contents when there > is a formvariable coming in named code. Which there does not seem to be.The formvariable for the showtheaters search is called select. I tried changing it to code, but that finds the movie code, not the theater code (called location code in this). > anyway... we see only 'select' and 'submit' coming in as formvariables. I > tried > adding &code=a to the URL and still got nothing I think that means the > interior > [search] is finding nothing. Let's debug one step at a time. Try adding > things > (below) to your pages to get it figured out piecemeal (see below) > > > > [!]---add this ^^^^^^^ to this form so the search on the next page fires at > least > once---[/!]I did that and changed the form method to GET so it shows in the URL. >> The code for showtheater.tpl is:> this search found [numfound] records
> [!]---add this ^^^^^^^ here so we know if the search finds anything---[/!] I did that, too, and it seems to be working.Okay, I just made one change that I thought I had tried previously.In:> The applicable part of default.tpl is: > >
> I changed select name=select to name=code. Now the movie search seems to be working. That seemed like an obvious change, but I thought I had changed it previously and that it completely knackered the whole thing up! Now, however, it seems to be working just fine. So, that solved that problem!!Thanks so much for all your help, John.NOW, I still have some problems with the date issue. I need the date displayed in a user-friendly format because the theatres show the same movie at different times depending on the date (I think it's a weekday weekend thing).When I added your suggested [Math date]{[FIELD5]}[/Math] (where FIELD5 is a number such as 062400 for June 24, 2000), it's still returning it as 01/01 but instead of being 01/01/00 it's now saying 01/01/1900! It doesn't seem to be reading the content of that field, BUT if I leave all that out and just have [FIELD5] there, it comes back with 062400. So, the Math context doesn't seem to be working either.Also, when searching on movie or theater, it needs to list each day with the showtimes, such as:Movie 062400 times 062500 times etc.My predecessor set the search to max=1. I changed it to 10 but it's still just returning 1 date and set of times. Do I need to reformulate my search or have a nested search of some sort? such as:search for movie founditems movie title search for dates founditems date showtimes /founditems /search /founditems /searchIs that the proper sort of arrangement for such a search? it's an educated guess ,but I don't know how good of one. Thanks again!Steve------------------------------------------------ Steven Jarvis Web Developer sjarvis@nwaonline.netMorning News of Northwest Arkansas http://www.nwaonline.net ------------------------------------------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: much help needed NEWBIE alert (John Butler 2000)
  2. Re: much help needed NEWBIE alert (Steven Jarvis 2000)
  3. Re: much help needed NEWBIE alert (Steven Jarvis 2000)
  4. Re: much help needed NEWBIE alert (John Butler 2000)
  5. Re: much help needed NEWBIE alert (Steven Jarvis 2000)
  6. Re: much help needed NEWBIE alert (Glenn Busbin 2000)
  7. Re: much help needed NEWBIE alert (John Butler 2000)
  8. much help needed NEWBIE alert (Steven Jarvis 2000)
> hopefully others jump in since there seems be several issues here, and I won't > have time to figure them all out. You said it finds *all the movies, but when > I try it it finds zero movies.I may have misspoke. I meant that it will find them if they are checked, either individually or in groups. If I select ALL the movies, it does find all of them, and the little tester code I put in at the bottom of the page to check the formvariables shows Code=XXXX for each movie.If I don't select a movie at all, it finds nothing.The search by movie code seems to work OK. It's the search by theater that's having problems.> The [showif [name]=Code]...[/showif] inside the > [formvariables] context with, > I believe, only show its contents when there > is a formvariable coming in named code. Which there does not seem to be.The formvariable for the showtheaters search is called select. I tried changing it to code, but that finds the movie code, not the theater code (called location code in this). > anyway... we see only 'select' and 'submit' coming in as formvariables. I > tried > adding &code=a to the URL and still got nothing I think that means the > interior > [search] is finding nothing. Let's debug one step at a time. Try adding > things > (below) to your pages to get it figured out piecemeal (see below) > > > > [!]---add this ^^^^^^^ to this form so the search on the next page fires at > least > once---[/!]I did that and changed the form method to GET so it shows in the URL. >> The code for showtheater.tpl is:> this search found [numfound] records
> [!]---add this ^^^^^^^ here so we know if the search finds anything---[/!] I did that, too, and it seems to be working.Okay, I just made one change that I thought I had tried previously.In:> The applicable part of default.tpl is: > > > I changed select name=select to name=code. Now the movie search seems to be working. That seemed like an obvious change, but I thought I had changed it previously and that it completely knackered the whole thing up! Now, however, it seems to be working just fine. So, that solved that problem!!Thanks so much for all your help, John.NOW, I still have some problems with the date issue. I need the date displayed in a user-friendly format because the theatres show the same movie at different times depending on the date (I think it's a weekday weekend thing).When I added your suggested [Math date]{[FIELD5]}[/Math] (where FIELD5 is a number such as 062400 for June 24, 2000), it's still returning it as 01/01 but instead of being 01/01/00 it's now saying 01/01/1900! It doesn't seem to be reading the content of that field, BUT if I leave all that out and just have [FIELD5] there, it comes back with 062400. So, the Math context doesn't seem to be working either.Also, when searching on movie or theater, it needs to list each day with the showtimes, such as:Movie 062400 times 062500 times etc.My predecessor set the search to max=1. I changed it to 10 but it's still just returning 1 date and set of times. Do I need to reformulate my search or have a nested search of some sort? such as:search for movie founditems movie title search for dates founditems date showtimes /founditems /search /founditems /searchIs that the proper sort of arrangement for such a search? it's an educated guess ,but I don't know how good of one. Thanks again!Steve------------------------------------------------ Steven Jarvis Web Developer sjarvis@nwaonline.netMorning News of Northwest Arkansas http://www.nwaonline.net ------------------------------------------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Steven Jarvis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

TCP Connect/send and CGI (2003) Categories (2000) Building Calendars (1997) WebCatalog can't find database (1997) WebCat editing, SiteGuard & SiteEdit (1997) [WebDNA] php/mySQL version of WebDNA Speed Test? (2009) webcat- multiple selection in input field (1997) MacActivity and PCS (1997) WebCat2.0 [format thousands .0f] no go (1997) That Flakey 'Brawl' thing (1997) I have observed and I am gone. (1998) Multiple Sendmail Tags on One Page (2008) Banners (1997) date formatting for CC card expiration date check (1998) Associative lookup style? (1997) possible, WebCat2.0 and checkboxes-restated (1997) Mac Vs WindowsNT (1997) Where is the bug fix info for 4.0.1? (2000) Mapping .tmpl extension on NT (1998) Pre-flight public flag (1997)