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:
difference between v.6 and v.7, WAS: [WebDNA] v7 thisurl has different behavour (2012) deerfield/wingate server (2004) Behind the Scenes. . . (1998) [WriteFile] problems (1997) WebCat2 as a chat server? (1997) totals (1997) Strange intermittent WebDNA problems (2008) searchable list archive (1997) RE: How much ram??? (1997) NTbeta18 corrupted? (1997) [append] and SSL (1997) Every other record deleted (2005) international time (1997) shownext not showing next...still r2 (1997) remotely add + sign (1997) lookups (2000) Duplicate emails being sent - only since last night (2002) [WebDNA] Encode cookies ONLY via "method=Base64" (2008) special commerce fields (1997) Limiting user access to .tmpl files (1997)