11-23-2015, 02:07 AM
(11-23-2015, 01:34 AM)PureTryOut Wrote:(11-22-2015, 09:31 AM)DrMasik Wrote: Any questions?
The problem I have now is using a SELECT query: if the result contains data from the database it runs fine, if not, it errors out instead.
Like I said, it breaks on stmt:get_values().
Replace
Code:
stmt:get_values()
to
Code:
local dataCol1;
local dataCol2;
for col1, col2 in stmt:urows() do
dataCol1 = col1;
dataCol2 = col2;
end
-- If no cycle dataCol2 == nil and dataCol2 == nil