CFLoop Error For Missing Entries

后端 未结 2 1728
独厮守ぢ
独厮守ぢ 2021-01-25 04:12

please disregard this post. I have made a clearer example of my problem here: Error with CFLoop When Entries Are Missing

I am running the CFLoop code be

2条回答
  •  醉梦人生
    2021-01-25 04:51

    Mike, apologies if I'm misunderstanding what you're after but it would seem that some basic conditionals could do the job. The following edit to your code is just a suggestion as to how to go about it (your full code base may dictate something slightly different, of course).

    
    
        
        
        
        
        
        
        
    
    
    
        #sid# -  #firstnamet# #lastname# - #age#

    The primary problem here (and maybe this is not an issue for you) is that this will output 50 - errors. So, if there are 3 errors (i.e., no data found) you'll have 47 entries output rather than 50. If that's an issue, please add a comment ... there are some alternative approaches for ensuring that you always have 50 items output.

提交回复
热议问题