When I added this code, and removed all the images from the database...that
I wanted to check to see if their <TR> would display...it worked correctly
(but the same thing had been happening while using the other 5 methods).
When I then added back all of the images that I wanted to display.....the
page did not show them....basically, it displayed the same exact page as
before and did not seem to notice that there were now images that should be
shown.  I did do a commit on the database before testing.....

Thanks for your help.


"Jason Wong" <[EMAIL PROTECTED]> wrote in message
> 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
> > NOT have an image for the  second floorplan of a house, then show the
> > floorplan image only.....skip over that next row because the field in
> > 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

Reply via email to