View Single Post
Old 01-02-2011, 04:59 AM  
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
Quick PHP Question.

I've got a check to see if it's a certain producttype (dog), and if so, something fits. Question is, can I have it be 'dog' and 'cat' and still have it as a line and not going into a if/else?

<-- Total noob, just learning.

Thanks in advance and Happy New Year.

PHP Code:
<?php if($this->product->productType == 'dog') { ?>        ruff ruff ruff            <?php ?>
Code:
<?php if($this->product->productType == 'dog') { ?>		ruff ruff ruff			<?php } ?>
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote