The issue I've got is with the display, I need it to display some options differently (due to image size) again not an issue, got this working. So search results A display in a grid view, and search results B display one at a time. However there is the chance that one search option inputted by the user shows BOTH options.
The problem I'm having is that I want to display all search results A first and all search results B second. At the moment, if it draws both styles then it displays haphazardly on the page.
Is there a php snippet of code I can add to my if statement to make search A display first then anything B.
Heres the code done simply as its very long:
Code: Select all
if ($option = X || $option = Y || $option = Z ... etc){
$class1 = A;
$class2 = AA;
}
else {
$class1 = B;
$class2 = BB;
}
echo "<div class='".$class1."'>";
echo "<div class='".$class2."'>";
echo some display ;
echo "</div>";
echo "</div>";
Regards,
Aravona