Hello friends,
I have created a column called "ok" in account, now I need to click on npc to check this example column:
column "ok" = 0
if the value of the "ok" column is 0 goes from the error message, if the value of the "ok" column is 1 of the correct message.
I hope you could understand.
Thank you for the attention.
Code
- when info or button begin say("blablabla")
- local f = select("bla si","bla no")
- if f == 1 then
- local c,query = mysql_direct_query("SELECT * FROM account.account WHERE id = '"..pc.get_account_id().."' LIMIT 1;")
- if query[1].ok < 1 then
- say'existe un valor menor a 1'
- else
- say'existe un valor de 1'
- end
- end
- if f == 2 then
- return
- end end
not work =