Forum » Programiranje » Problem v php skripti
Problem v php skripti
svejk ::
Pozdrav,
postavljam si php trgovino, ki jo prosto dobiš na oscommerce.com. Glede na to, da res nisem programer se obračam na znanje ljudi na tem forumu. Namreč ob stisku gumbka "naročilo" dobim naslednji izpis:
Warning: Division by zero in /var/www/html/oscommerce/catalog/includes/classes/shipping.php on line 61
Warning: Division by zero in /var/www/html/oscommerce/catalog/includes/classes/shipping.php on line 62
Ok sedaj grem pogledati to datoteko: link
Mogoče kdo ve kaj bi bila napaka v 61 in 62 vrstici.
Hvala!!!
postavljam si php trgovino, ki jo prosto dobiš na oscommerce.com. Glede na to, da res nisem programer se obračam na znanje ljudi na tem forumu. Namreč ob stisku gumbka "naročilo" dobim naslednji izpis:
Warning: Division by zero in /var/www/html/oscommerce/catalog/includes/classes/shipping.php on line 61
Warning: Division by zero in /var/www/html/oscommerce/catalog/includes/classes/shipping.php on line 62
Ok sedaj grem pogledati to datoteko: link
Mogoče kdo ve kaj bi bila napaka v 61 in 62 vrstici.
Hvala!!!
Reso ::
Popravi tole
if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
$shipping_weight = $shipping_weight/$shipping_num_boxes;
}
v tole:
if ($shipping_weight > SHIPPING_MAX_WEIGHT && SHIPPING_MAX_WEIGHT != 0) { // Split into many boxes
$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
$shipping_weight = $shipping_weight/$shipping_num_boxes;
}
if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
$shipping_weight = $shipping_weight/$shipping_num_boxes;
}
v tole:
if ($shipping_weight > SHIPPING_MAX_WEIGHT && SHIPPING_MAX_WEIGHT != 0) { // Split into many boxes
$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
$shipping_weight = $shipping_weight/$shipping_num_boxes;
}
svejk ::
Hvala res deluje :)
Očitno poznaš zadevo, ker je nekje neka napaka, ki meni res ni bila znana :)
Očitno poznaš zadevo, ker je nekje neka napaka, ki meni res ni bila znana :)
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Kako najlažje naročiti iz Amazon.com?Oddelek: Kaj kupiti | 2613 (2231) | akulp |
» | Lipo baterijeOddelek: Loža | 1600 (1320) | koyotee |
» | OSCommerce nastavitve (strani: 1 2 3 4 … 10 11 12 13 )Oddelek: Izdelava spletišč | 53598 (20749) | Skarabej |
» | Nokia n95 8GB verzija (strani: 1 2 )Oddelek: Mobilne tehnologije | 14707 (2841) | gasperxp |
» | Vprasanje: placilo postnineOddelek: Loža | 1792 (1461) | @LOL |