I'm fetching data from a 4 column table. If all the 4 columns have some kind of data (not empty), then it is working. If, by any chance, one of the columns is null then it's going to throw an error. From the table the name of file is fetched and file is saved in one directory of the server and that file is being emailed.
What I need to do is, suppose one column is null and the other 3 columns are not null then it should send the remaining file rather going to error.