Forum Moderators: coopster
Can anyone possibly tell me, how would I do the "OR" in the code below?
if ($size1?OR? $size2?OR?$size3?OR?$size4?OR?$size5?OR?$size6 >= 1) {
echo "<input type='submit' value='add to cart' name='B1' STYLE='font-size:8pt; background-color:000000; color:CCCCCC'> ";
}
else {
echo "(not in stock)";
}
I got an error using that:
Parse error: parse error, unexpected T_STRING
if ($size6>0 ¦¦ $size7>0 ¦¦ $size8>0 ¦¦ $size9>0 ¦¦ $size10>0 ¦¦ $size11>0)
{
echo "<input type='submit' value='add to cart' name='B1' STYLE='font-size:8pt; background-color:000000; color:CCCCCC'> ";
}
else {
echo "(not in stock)";
}