The code you have posted is not even close to being valid..
For instance, here is your code:
Code: Select all
<?PHP
$qty = 0;
$totalamount = 0.00;
$totalqty = $NNSQTY+$CBFNQTY+$AKNQTY+$CFNQTY+$CVNQTY ;
$totalamount = $NNSQTY* Necklace of the Night Sky
+$CBFNQTY* Chainmaile Beaded Fancy Necklace
+$AKNQTY* Antique Key Necklace
+$CFNQTY* Chainmaile Fancy Necklace
+$CVNQTY* Chainmaile V Necklace;
?>
#1, $totalamount is being set to a bunch of multiplication statments and text, all bunched into one.
Code: Select all
$totalamount = $NNSQTY* Necklace of the Night Sky
+$CBFNQTY* Chainmaile Beaded Fancy Necklace
+$AKNQTY* Antique Key Necklace
+$CFNQTY* Chainmaile Fancy Necklace
+$CVNQTY* Chainmaile V Necklace;
There is no way that is valid unless you are using the DEFINE statement that you aren't showing us.
instead, $totalamount is only valid if it looks like this
Code: Select all
<?php
$Necklace_of_the_Night_Sky = 123123123;
$Chainmaile_Beaded_Fancy_Necklace = 123123123123;
$Antique_Key_Necklace = 123123123123;
$Chainmaile_Fancy_Necklace = 123123123123;
$Chainmaile_V_Necklace = 123123123123;
$totalamount = $NNSQTY * $Necklace_of_the_Night_Sky + $CBFNQTY * $Chainmaile_Beaded_Fancy_Necklace + $AKNQTY * $Antique_Key_Necklace + $CFNQTY * $Chainmaile_Fancy_Necklace + $CVNQTY * $Chainmaile_V_Necklace;
?>
or this :
Code: Select all
<?php
DEFINE(Necklace_of_the_Night_Sky, 123123123);
DEFINE(Chainmaile_Beaded_Fancy_Necklace, 123123123123);
DEFINE(Antique_Key_Necklace,123123123123);
DEFINE(Chainmaile_Fancy_Necklace, 123123123123);
DEFINE(Chainmaile_V_Necklace, 123123123123);
$totalamount = $NNSQTY * Necklace_of_the_Night_Sky + $CBFNQTY * Chainmaile_Beaded_Fancy_Necklace + $AKNQTY * Antique_Key_Necklace + $CFNQTY * Chainmaile_Fancy_Necklace + $CVNQTY * Chainmaile_V_Necklace;
?>
That's it.