co.ador Posted September 6, 2009 Share Posted September 6, 2009 Total: $ Notice: Undefined variable: totalCost in C:\wamp\www\shoes\stores\cart.php on line 151 0.00 <tr> <td colspan="2"> <font face="verdana" size="1" color="black"> <a href="itemdetails.php"><< Keep Shopping</a></font></td> <td colspan="2"> <font face="verdana" size="2" color="black"> <b>Total: $<?php echo number_format($totalCost, 2, ".", ","); ?></b>// line 151 </font></td> </tr> <tr> What could that be and where could I define it Quote Link to comment https://forums.phpfreaks.com/topic/173282-undefined-variable-error-help/ Share on other sites More sharing options...
Philip Posted September 6, 2009 Share Posted September 6, 2009 Just what that says "Undefined variable" - you need to place a value to $totalCost before you can use it Quote Link to comment https://forums.phpfreaks.com/topic/173282-undefined-variable-error-help/#findComment-913413 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.