I have no error message when it run on local server(xampp), but when it upload in the online server then I got this error. How can I solve this. I am follow this code.
<?php $total_price=""; foreach ($product_data as $pdata) { if($pdata->offer_price>0){ $p_price=$pdata->offer_price; }else{ $p_price=$pdata->product_price; } $total_price +=$p_price; } echo $total_price; ?>
Question and answer is powered by AnsPress.io