A little help guys
i have a JButton..i wanna use it to repeat the SQL statements but with an updated value....
my JButton reads
if(ae.getSource()==b1)
{
v1=v1+2;
System.out.println(v1);
}
v1 gets a new value everytime i click the button
and the v1 is used here ...under public static void main....
Statement s = con.createStatement();
s.execute("SELECT Question FROM Ques WHERE ID=" +v1);
its like i want the question to be displayed...then after clicking b1..the next ques should appear on the same page...
how to go about this? ? ?