alan-l |
10-23-2011 10:21 PM |
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 :thumbsup
Of course, thank you in advance :)
|