I am trying to find the proper way to turn this...
$totalqty = 0;
$totalqty = $tireqty + $oilqty + $sparkqty + $coolqty + $wiperqty;
echo 'Items ordered: '.$totalqty.'<br />';
if( $totalqty == 0)
{
echo 'You did not order anything on the previous page!<br />';
}
else
{
if ( $tireqty>0 )
echo $tireqty.' tires<br />';
if ( $oilqty>0 )
echo $oilqty.' bottles of oil<br />';
if ( $sparkqty>0 )
echo $sparkqty.' spark plugs<br />';
if ( $coolqty>0 )
echo $coolqty.' coolant<br />';
if ($wiperqty>0 )
echo $wiperqty.' wiper blades<br />';
}
Into a FOREACH array.
Does anyone have a stupid-simple example for a newbie?