On Tuesday 23 July 2002 11:58, markbm wrote:
> I am trying to develop a page that, in certain places, I only want it to
> display the <TR> and <TD>s if data is found for a given field. For
> example, if I only have an image for the first floorplan of a house, I do
> NOT have an image for the second floorplan of a house, then show the first
> floorplan image only.....skip over that next row because the field in the
> db is empty.
>
> The problem that I'm having is that the syntax that I've been using to
> define "empty" in the db field does not always work. The code reads:
>
> if ($result[FLRPLAN_2]<>" ") {
Try:
if (!empty($result['FLRPLAN_2'])) {
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Reading is to the mind what exercise is to the body.
*/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php