I have a page that is to be displayed with one applet if the condition met is either true/false. The problem is, that if a condition is NEITHER, I want it to return to an error page or a page that describes that the item was not found. I need it to recognize if the item is AVAILABLE, if it is, continue on, AND if the item is also a recognized ProductCode. If not, then redirect to the error page.
So here's what I have currently -->
if ($row_products['Availability'] == true );
But the problem is, the field contains either YES or NO... ? I've tried changing to:
if ($row_products['Availability'] != 'Yes' );
if ($row_products['Availability'] == 'No' );
But ends up STILL showing the error that I have in place!? Can this not be done this way? If not, what's my alternative?
Thanks in advance!