Hello facepunch, I wanted to know if theres a way to check if a table is empty, since tmysqls "data" table is for me right now empty, but my "check" still ignores it
[code]
if results[1].data then
PrintTable(results[1].data)
print("cookies")
else
print("Data empty")
end
[/code]
it never prints "Data empty" even though the console says
"data: "
[editline]4th December 2015[/editline]
Edit: Welp, the check should include data[1].. ugh why does tmysql has 2 tables instead of one..
Sorry, you need to Log In to post a reply to this thread.