Hi All,
I have a products page that I wrote that loops thru my table and gets all the products and displays a "Buy Now" form for each item. The 'Buy Now' button sends the purchase to our shopping cart. It works great exept where I am trying to have it 'not' show the 'Buy Now' form for a product that links to multiple items.
In my table, I have a field called SpecialURL which has a default of 0 (zero).
So I do a test to see if that field is empty (show the form) or does it contain a URL (dont show the form).
<?PHP if ($row[SpecialURL]==0) { ?>
(HTML FORM info}
<?PHP } else { end; } ?>
And the form shows up if the field has a zero or a URL in it?
I did a ...
<?PHP echo ($row[SpecialURL]); ?>
and for the empty fields I get a 0 (zero) and the fields with a URL in it, I get a 1 (one)???
Where is my logic off on this?
Thanks in advance,
Don