• You are not logged in. | Login

Post a reply

  • Index
  •  » Help me!
  •  » if then statment need abit of help! thanks

February 3, 2010 2:02 am

Simon
Member
Ranks

if then statment need abit of help! thanks

maybe you lot can help me am trying to make a option were it will check 3 lots of information and enable / disable the selectioned items for the setting below is my badly coded code i tryed to work out.

<?php
 
if ($sid == '1') {
   if ($qty == '4') {
    echo "Sorry!, You are only able to order a maxium of 3 samples per order.";
 $tag = 'disabled';
 
} elseif ($_SESSION['cart']) {
 $tag = '';
 
} else {
    $tag = 'disabled';
  }
}
 
?>

basicly what i wanrt is for it to check SID and then QTY and if there both match to disable the option then i want it to check to see if the cart is true or false and if false to disable the funcation yet agen

can anyone help me plz?

thanks


 

 

May 11, 2011 5:57 am

wuchun
Member
Ranks

Re: if then statment need abit of help! thanks

Uninstall the package brand sunglassesyou have, go download the three items prada sunglassesseparately and set it up properly -  there is much less chance of having such
christian dior sunglassesa problem.How do I get a copy of the DBWrapper class your script requires? Please email arnette sunglassesme back at seth dot ammons bolle sunglassesat gmail dot com.


 

 
  • Index
  •  » Help me!
  •  » if then statment need abit of help! thanks
  • Actions
  • Top