To do this, you need to use [interpet]like so:[interpret][[slid=eshow]][/interpret]=This will first evaluate [slideshow]. If thatvalue is 'yes' then interpret [yes], so the result would be RockU=div>Terry
On Mon, 21 Jun= 2010 04:29:37 +0800
sgbc cebu <sgbc=cebu@gmail.com> wrote:
>Had difficulty of pulling a text variable via a
>database.
> <=br>> Please consider this code:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> [text]YES=3DRockU[/text]=
>
>
> [searchdb=3Dinc/content.db&geSKUdata=3D0&SKUsort=3D1]
> [founditems]=
>
> [[Slideshow]]
>
>[/founditems]
> [/search]
>
> =3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>
> Where [SlideShow]either will get a YES or a NO from
>database.
>
> The p=roblem is when [SlideShow] tells"YES".
> It will appear "[Yes]" on the page inste=ad of "Rocku"
>
> Thanks
=A0
--001636310789af9f9904899b693a-- Associated Messages, from the most recent to the oldest:
--001636310789af9f9904899b693aContent-Type: text/plain; charset=ISO-8859-1Thanks! Just got it working the way I wanted!http://catherinejames.bravehost.com/On Mon, Jun 21, 2010 at 5:15 AM, Terry Wilson
- Re: [WebDNA] Text Variable in Search (sgbc cebu
2010) - Re: [WebDNA] Text Variable in Search ("Terry Wilson"
2010) - Re: [WebDNA] Text Variable in Search ("Dan Strong"
2010) - Re: [WebDNA] Text Variable in Search ("Dan Strong"
2010) - [WebDNA] Text Variable in Search (sgbc cebu
2010) wrote:> To do this, you need to use [interpet] like so:>> [interpret][[slideshow]][/interpret]>> This will first evaluate [slideshow]. If that value is 'yes' then interpret> [yes], so the result would be RockU>> Terry>>>> On Mon, 21 Jun 2010 04:29:37 +0800> sgbc cebu wrote:> > Had difficulty of pulling a text variable via a> >database.> >> > Please consider this code:> >> > =================================> >> > [text]YES=RockU[/text]> >> >> > [search db=inc/content.db&geSKUdata=0&SKUsort=1]> > [founditems]> >> > [[Slideshow]]> >> > [/founditems]> > [/search]> >> > =================================> >> > Where [SlideShow] either will get a YES or a NO from> >database.> >> > The problem is when [SlideShow] tells "YES".> > It will appear "[Yes]" on the page instead of "Rocku"> >> > Thanks>>>--001636310789af9f9904899b693aContent-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableThanks! Just got it working the way I wanted!
http://catherinejames.bravehost.com/
=On Mon, Jun 21, 2010 at 5:15 AM, Terry Wilson<terry@terryfic.co=m> wrote:To do this, you need to use [interpet]like so:[interpret][[slid=eshow]][/interpret]=This will first evaluate [slideshow]. If thatvalue is 'yes' then interpret [yes], so the result would be RockU=div>Terry
On Mon, 21 Jun= 2010 04:29:37 +0800
sgbc cebu <sgbc=cebu@gmail.com> wrote:
>Had difficulty of pulling a text variable via a
>database.
> <=br>> Please consider this code:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> [text]YES=3DRockU[/text]=
>
>
> [searchdb=3Dinc/content.db&geSKUdata=3D0&SKUsort=3D1]
> [founditems]=
>
> [[Slideshow]]
>
>[/founditems]
> [/search]
>
> =3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>
> Where [SlideShow]either will get a YES or a NO from
>database.
>
> The p=roblem is when [SlideShow] tells"YES".
> It will appear "[Yes]" on the page inste=ad of "Rocku"
>
> Thanks
=A0
--001636310789af9f9904899b693a-- sgbc cebu
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:
Coding Technique (2000) How To question on setting up downloads (1997) [addlineitems] (1997) Error:Too many nested [xxx] contexts (1997) Searching Multiple DBs (1997) WebDNA dying or ... ? (2005) $append (1998) Coding Technique (2000) Setting up WebCatalog with Retail Pro data (1996) MS Commerce Comparison (long) (1998) [WebDNA] character encodings in linux (2011) Relevancy Rating (1998) Help with database strategy (1998) Thanks for tips, more quest (1997) Am I going senile? (Price recalc based on quantity) (1997) How do you hide [math]stuff[/math] (1997) U&P IIS concept (1998) gateway application timeouts (1998) question: back button prevention (1997) [WebDNA] WebDNA on LiveCD ... (2008)