How to display the error message after completed the delete?Either delete or not $row=1,so how to find after deleting the record?\[code\] $row = $obj->delete_photo_rec($data); if($row) { $content.="<Delete_Photo_Status>True</Delete_Photo_Status>"; } else { $content.="<Delete_Photo_Status>False</Delete_Photo_Status>"; } $content.='</Photo_Albums>';echo $content;\[/code\]