If statement trouble
Posted: Tue Feb 08, 2011 8:26 am
Hey guys,
I'm a web designer without any experience with PHP or any kind of coding really. My company has a website in PHP and we need something changed. Basically when you view 2 of our product lines we need a different header to appear. I did my best before having to come here but I got stuck. Below is the code i added in and below that is what we normally have. When "crown" or "monarch" is viewed, I need seriesHeader2 to be displayed. I apologize about the outdated code. This page is soon being re-designed. Thanks in advance
I'm a web designer without any experience with PHP or any kind of coding really. My company has a website in PHP and we need something changed. Basically when you view 2 of our product lines we need a different header to appear. I did my best before having to come here but I got stuck. Below is the code i added in and below that is what we normally have. When "crown" or "monarch" is viewed, I need seriesHeader2 to be displayed. I apologize about the outdated code. This page is soon being re-designed. Thanks in advance
Code: Select all
if (strtolower($series) == "crown" "monarch")
echo "<div class='seriesHeader2' />"
elseCode: Select all
echo "<div class='seriesHeader' /><table width='440' border='0' ><tr><td width='50' align=right valign=top class='seriesHeadTitle'>".strtoupper($seriesName)."<br /><span style='font-size:9pt;font-style:italic;'>series</span></td><td class='seriesHeadMain'>".$seriesInfo."</td></tr></table></div>";