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:

OT: How to find out who owns an IP address (2001) Encryption Webdna method versus Cybercash (2005) [UPPERCASE] (1997) Subtotal Not Calculated on Invoice.html (1998) View order not right (1997) Getting total number of items ordered (1997) RE: Re:Signal Raised (1997) WebCatalog seems to choke on large (2meg) html files. (1998) Nested tags count question (1997) Frames and WebCat (1997) calculating tax rates, mail order solutions and version 2 (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Re:ListFields and [name] (1997) FlushDatabases (2000) Problems getting parameters passed into email. (1997) [ot] G5 Desktop as Server (2004) Re:2nd WebCatalog2 Feature Request (1996) another problem (1997) mwhs marketing,Dutchlink (2000) Root Folder problems cont. (1998)