macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: PHP and Spry

Subject: Re: PHP and Spry
From: David Powers
Date: Wed, 05 Sep 2007 15:58:52 +0100
Newsgroups: macromedia.dreamweaver.appdev


jmortimer wrote:
Prior to XML I used to simply use PHP to execute a MySQL query, get the result and do something with it. Sometimes this would mean I could evaluate the returning value and, depending on its parameters, I could do something; like not display it. How can I do this with an XML dataset?

You need to add a Spry conditional to the element that might contain an empty string:

<p spry:if="'{address2}' != ''">{address2}</p>

Prior to utilizing the XML, I would simply evaluate the returned data element using php, but I don't know how, or if, php can evaluate a returning xml value.

PHP normally has nothing to do with the display of Spry data sets.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

<Prev in Thread] Current Thread [Next in Thread>
  • PHP and Spry, jmortimer
    • Re: PHP and Spry, David Powers <=