I think it would be:
$UpdateQuery->bindColumn("image", "s", "".(!empty($_FILES["image"]["name"])?"https://".$_SERVER['SERVER_NAME'] ."/files-2023/".($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]):$oldRecordset-<getColumnVal("image")) ."", "WA_IGNORE");