i do addition for 2 variable but i get only the second variable as done

<?php $totalpay=  ($row_panier['prix']+$shipping1);?>
<input name="total" type="text" value="<?php echo $totalpay; ?>" readonly>

only the number of $shipping one is show on navigator

Recommended Answers

All 2 Replies

Post your full code for us to find the error. Value of prix and $row_panier[] is not known.

Member Avatar for diafol

I suppose you checked the $row_panier['prix'] value with an 'echo', so what does it give you?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.