exec($sql_update); $sql_update = " UPDATE order_main SET ORDER_PRICE={$all_price} WHERE ORDER_ID={$order_id} "; $pdo_update->exec($sql_update); echo "change price success"; exit();