ZenphotoCMS Forum
Php for If Image Description is Not Blank - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Php for If Image Description is Not Blank (/thread-4667.html)



Php for If Image Description is Not Blank - boo - 2009-02-12

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.




Php for If Image Description is Not Blank - acrylian - 2009-02-12

$desc = getImageDesc(); if(!empty($desc)) { ; } for example. I suggest you start learning some php basics..:-)




Php for If Image Description is Not Blank - boo - 2009-02-12

Hi, thankyou.

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