Hello,
I am trying to create an order form which uses different prices based on quantity ordered. Here is what I have:
ELSEIF ($action==" Review Order "):
$totalquantity = ($quantity50001);
if ($quantity50001 <= 0) {
$total50001 = "0";
$quantity50001 = "0";
}
if ($totalquantity <= 0) {
$thetotal = "0";
$total50001 = "0";
$quantity50001 = "0";
}
if ($totalquantity > 0 < 11) {
$total50001 = ($quantity50001 * 59.00);
$thetotal = ($totalquantity * 59.00);
}
if ($totalquantity > 10 < 26) {
$total50001 = ($quantity50001 * 54.00);
$thetotal = ($totalquantity * 54.00);
}
if ($totalquantity > 25 < 51) {
$total50001 = ($quantity50001 * 49.00);
$thetotal = ($totalquantity * 49.00);
}
if ($totalquantity > 50 < 101) {
$total50001 = ($quantity50001 * 44.00);
$thetotal = ($totalquantity * 44.00);
}
if ($totalquantity > 100) {
$total50001 = ($quantity50001 * 39.00);
$thetotal = ($totalquantity * 39.00);
}
?>
When I run the code, I get an error message at the first line. Can anyone tell me what I'm doing wrong?
Thanks