Re: Search Command ... A minute ago this worked...?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30906
interpreted = N
texte = Thanks. I'll take a closer look at my .db. Your response answered many brewing questions.A minute ago I had this page returning mondo results. I made a couple changes to the db, nothing major, added some toggle fields, and I made a couple changes to the page. Now, I get no results. Arghh! FIT People Detail [include file=header.htm]

[search db=fitpeople.db&eqAuthor1data=[url][Author1][/url]]

[founditems]


[Biography] [Text]
[Text2]
[Text3]
[Text4]
[Author1]
[/founditems] [/search]
Press your browser's "Go Back" button to see the page you just came from,
or return to the Search by Category Page
Mike Davis wrote: > > There are four ways that your [Image] can be used: > 1. Send a formvariable with that name, (ie People.tpl?Image=some.gif) > 2. Inside a founditems loop where the database searched has a field named > Image. My guess is that your database does not have a field with this exact > name. > 3. Set a [math] variable on the page prior to using [Image]. > 4. Set a [text] variable on the page prior to using [Image]. > > Mike > > > Right. I realized your point as soon as I took a look at the contents > > of my Author1 field: Firstname M.I. Lastname. Duh. I didn't get it > > that the field value is substituted into the url, not the field name. > > > > Since you're up, could you look at this: > > > > Why doesn't the image load? The other fields [Biography][Text], etc, > > load, but not the Image. > > My browser reads the link as: Images/FitImages/[Image], or whatever. > > It doesn't substitute the value of the Image field for the current > > record in the people.db. I'm sure the image is there and everything is > > cased and spelled right. > > > > Here's the code: > > > > [founditems] > > [Author1] > > [Text] > > [Biography] > > > > > > > > > SRC=Images/FitImages/[Image]>
> >
> > > > > >
> > [/founditems] > > [/search] > > > > > > > > Kenneth Grome wrote: > >> > >>> Thank you Kenneth. I'll try that next. > >>> I read in the book about [url] context it sounded like it was only > >>> necessary when spaces, percent sign, and other wierd characters were > >>> present in the URL. I guess I missed something. > >> > >> No, you did not miss anything -- but how do you know for sure that > >> the value of [Author1] will never have a space in it? Especially if > >> you let someone else (like a website visitor) create that value? > >> > >> ================================ > >> Kenneth Grome, WebDNA Consultant > >> 808-737-6499 http://webdna.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 ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Search Command ... A minute ago this worked...? (Bob/Amelia McPeak 2000)
Thanks. I'll take a closer look at my .db. Your response answered many brewing questions.A minute ago I had this page returning mondo results. I made a couple changes to the db, nothing major, added some toggle fields, and I made a couple changes to the page. Now, I get no results. Arghh! FIT People Detail [include file=header.htm]

[search db=fitpeople.db&eqAuthor1data=[url][Author1][/url]]

[founditems]


[Biography] [text]
[Text2]
[Text3]
[Text4]
[Author1]
[/founditems] [/search]
Press your browser's "Go Back" button to see the page you just came from,
or return to the [cart]>Search by Category Page
Mike Davis wrote: > > There are four ways that your [Image] can be used: > 1. Send a formvariable with that name, (ie People.tpl?Image=some.gif) > 2. Inside a founditems loop where the database searched has a field named > Image. My guess is that your database does not have a field with this exact > name. > 3. Set a [math] variable on the page prior to using [Image]. > 4. Set a [text] variable on the page prior to using [Image]. > > Mike > > > Right. I realized your point as soon as I took a look at the contents > > of my Author1 field: Firstname M.I. Lastname. Duh. I didn't get it > > that the field value is substituted into the url, not the field name. > > > > Since you're up, could you look at this: > > > > Why doesn't the image load? The other fields [Biography][text], etc, > > load, but not the Image. > > My browser reads the link as: Images/FitImages/[Image], or whatever. > > It doesn't substitute the value of the Image field for the current > > record in the people.db. I'm sure the image is there and everything is > > cased and spelled right. > > > > Here's the code: > > > > [founditems] > > [Author1] > > [text] > > [Biography] > > > > > > > > > SRC=Images/FitImages/[Image]>
> >
> > > > > >
> > [/founditems] > > [/search] > > > > > > > > Kenneth Grome wrote: > >> > >>> Thank you Kenneth. I'll try that next. > >>> I read in the book about [url] context it sounded like it was only > >>> necessary when spaces, percent sign, and other wierd characters were > >>> present in the URL. I guess I missed something. > >> > >> No, you did not miss anything -- but how do you know for sure that > >> the value of [Author1] will never have a space in it? Especially if > >> you let someone else (like a website visitor) create that value? > >> > >> ================================ > >> Kenneth Grome, WebDNA Consultant > >> 808-737-6499 http://webdna.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 ------------------------------------------------------------- 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 Bob/Amelia McPeak

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:

WebCat2: Items xx to xx shown, etc. (1997) WebCat editing, SiteGuard & SiteEdit (1997) Using Japanesse text with webcat. (1998) Anyone awake? Newby moves deeper! Sitesearch & CustomerDBAppend Context or Command? (2000) WebCat2 several catalogs? (1997) RE: Suggestions for Topics to be covered in an Advanced WebDNACourse... (1998) Menu Madness (2001) Click-through/Referral tracking solution needed (2000) [WebDNA] List Files question (2009) How do I get WebCatalog to interpret WebDNA tags in.html files? (1997) Line Feed problems ... (2002) Date problems (1997) limit to listwords (2001) [WebDNA] DNA suffix (2008) Removing username from browser (2000) Exclamation point (1997) Upgrading from 2.1 to 3.0.7 (2000) WebDNA monitor not working (2002) How does 4DWebSTAR V's cache work? (2002) NT - Thanks and Taxes (1997)