I would like to make a java code that has different outcomes that are determined by data inside of a MySQL column. I have everything set up and I can connect to the database and view data. I don't know how I would use "If" with a mysql column. Here is my code: http://pastebin.com/UsJC7Qzx
What I'm trying to do specifically: I want to make the code print "Thanks for voting" if the MySQL column "given" is equal to 0 and then it will set the column to 1. And if the column is equal to 1 it will say "Thanks again for voting."
This is just a simple base for a voting reward system I'm doing for my video game.
If you don't have very good understanding of what I am trying to say read my notes inside of the code.