On Wednesday 04 February 2004 12:56, John Taylor-Johnston wrote:

Please use a meaningful subject.

> I need to refine this. I'm tired ... long day.

You're tired so you want others to do your work?

> I would like to echo $mydata->district only once unless it changes.

Maintain a 'flag' which stores 'previous' value of $mydata-district. If 'flag' 
and $mydata-district differ print $mydata-district and update 'flag'.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
People never lie so much as after a hunt, during a war, or before an election.
                -- Otto Von Bismarck
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to