I'm writing my scripts on Win98, so as far as I know there are no programs to test this sort of thing...
Taking into account system resources, what is the best option of the below two (using MySQL)? In this example, I only want to list products on the page which are currently offered...
1)
<? if ($product == y) { echo "<LI>Magnet" ; } ?>
OR
2) <? echo $product ; ?>
$product would contain "<LI>Magnet", and the field would be replaced with "" when the product wasn't available.
Please note that there would be about 30 of these, and most of the products at any given time are not available.