Php for If Image Description is Not Blank

Hi,
I do not know PHP, I have put the image description inside it's own Div.

Can you please tell me the php code to test if the description is not blank and therefore display the Div.

Otherwise I get unnecessary space between the element above and below.

Mant thanks.

Comments

  • acrylian Administrator, Developer
    `$desc = getImageDesc(); if(!empty($desc)) { ; }` for example. I suggest you start learning some php basics..:-)
  • Hi, thankyou.

    Yes I need to get a good php book, might be easier to learn japanese tho looking at php code lol.
Sign In or Register to comment.