".$offer['name'].""; } } else { //api error occurred, handle it how you like echo $json['error']; } } ?>