Jump to content

Getting undefined variable.. why?


Freedom-n-Democrazy

Recommended Posts

Have you defined $carttotal anywhere before trying to add to it?

 

something like this would be fine:

$carttotal = 0; // set default
$idtotal = $sizestotal + $sizemtotal + $sizeltotal + $sizexltotal;
$carttotal += $idtotal;

 

or even...

$carttotal = 0; // set default
$carttotal += ($sizestotal + $sizemtotal + $sizeltotal + $sizexltotal);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.