I am getting the following error message with the below code:
Warning: number_format() expects parameter 1 to be double, object given in ...
<?php $price=$preownedinfo->Price; $formatted_price = number_format($price, 2); echo $formatted_price; ?>
Can you tell me what might be the issue. Thanks.