Jump to content

check mysql column lua


Recommended Posts

I have a column and in that column I need to check 0 or 1,

 

column "verify" 0 or 1

 

quest testserver begin
	state start begin
		state start begin
			when login or begin
				set_state( gotoinfomation )
			end
		end
		state gotoinfomation begin
			when letter begin
				send_letter("Welcome")
			end
			when button or info begin
				say("text")
				say("")
				local f = select("Yes count","No count")
				if f == 1 then
				local res1, verify = mysql_direct_query("select * from account.account;")
				mysql_direct_query("SELECT verify FROM account.account WHERE verify = '0'")
				else
				say("text2")
				if f == 2 then
				return
				end
				--set_state( gototeacher )
				--end
			end
		end
	end
end

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.