Back up slightly. Why would you not know what columns are in your query?
Now, I know there can be reasons for this, but what are your specific reasons?
And, again, [insert the usual spiel about how to asks question properly here].
Adam Cameron
01/28/2022, 7:33 PM
Best for what? What actual problem are you trying to solve?
✅ 1
s
Simone
01/28/2022, 7:34 PM
no recordcount check
f
foundeo
01/28/2022, 7:44 PM
if you are checking if the query has rows (a recordcount that is not zero), then you can do
if ( myquery.recordcount ) { ... }
d
Daniel Mejia
01/28/2022, 7:48 PM
Yeah I recommend do a recordcount check first.
Also Share more of your code and we'll be able to understand the problem.