Menu
hi
this is what is currently on page1.php
[code=php]Item Name: <?php print $productnameP11 ?><br>
Item Number: <?php print $productcodeP11 ?><br>
Quantity: <?php print $quantityP11 ?><br>
Size: <?php print $sizeP11 ?><br>
Type: <?php print $typeP11 ?><br>
Price: £<?php print $priceP11 ?>
but 10 of them so P11–>P110
what i am trying to do is make it
<?php
if ($showP11==1){
print “XX”;
}
?>
where XX is the above code, item number etc
so the script would have the above code only once but instead of P11 you would have like an array, of P11–>P110 and then instead of print “XX”; would be like print “item[P11]”
thanks