View Single Post
Old 10-23-2011, 10:21 PM  
alan-l
Confirmed User
 
Join Date: May 2003
Location: look behind you
Posts: 2,477
PHP gods, I need your help please!

Need to fix this in a script and the developer is MIA, any help greatly appreciated. I have this line:

Code:
<?php echo $product['niche'][0]; ?>
which throws whatever I input in the admin area for that field. Like Niche: Latex Fetish.

However, if I don't input something in that field, the design gets screwed since the divs are floated or whatever, so what I need is just something like

Code:
if $product['niche'][0]; is filled, then use it, otherwise add N/A
I know it's something extremely easy, but I have no idea about PHP, so any help more han appreciated

Of course, thank you in advance
alan-l is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote