General > Developers Corner
Error in External MySQL database config - bad key
Timmy:
Oh, I bet MySQLOO returns the ID as a string... Cast it to a number before comparing.
if (value and tonumber(value.job_id) ~= currentteam) then
If you ever need to debug something like this, you can get the data type of a value with type().
print(type(my_variable))
jacksop:
Awesome. I believe that worked! Nice work thinking of that. (I probs would never have)
Thanks for your help through all this. Would have been stuck for countless hours otherwise. I couldn't find any other forum post similar to mine so I started this one so thank you.
Funny how far we got from the actual problem that started this thread.
Thank you again!
Navigation
[0] Message Index
[*] Previous page
Go to full version