Getting an error. Is my syntax correct in the If statement?
[code=php]if (($row[‘sub_sort’] == 1) || ($row[‘sub_sort’] == “”)) {
echo “<a href=’http://www.mdbportfolio.com/”.$page.”.php?client=”.$row[‘client’].”‘ id=’rotator’ style=’margin: 25px auto 0 auto; display:block; width:”.$row[‘width’].”px; height:”.$height.”px; background:url(images/”.$cat.”/”.$row[‘imgName’].”) center center no-repeat’><a/>”;
} else {
echo “<a href=’http://www.mdbportfolio.com/”.$page.”.php?client=”.$row[‘client’].”&subcategory=”.$row[‘subcategory’].”‘ id=’rotator’ style=’margin: 25px auto 0 auto; display:block; width:”.$row[‘width’].”px; height:”.$height.”px; background:url(images/”.$cat.”/”.$row[‘imgName’].”) center center no-repeat’><a/>”;
}
Thank you in advance!