Jump to content

SESSION variables


kerbdog

Recommended Posts

The code you have provided would display the qty, an * and then the price. I believe you're looking for this:

 

echo '<td>'.($_SESSION['itemqty'][$key] * $_SESSION['itemprice'][$key]).'</td>';

The difference is this code would compute the sub-total then display it. Hope that helps.

Link to comment
https://forums.phpfreaks.com/topic/228162-session-variables/#findComment-1176608
Share on other sites

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.