Click to See Complete Forum and Search --> : Comparing value from Database with a radio button


Choki
January 11th, 2009, 11:59 PM
Hi, good day to all.
I'm trying to create a method in which i would be able to gather data from a sqldatabase to compare it with the text of a radio button. The reason is that i wish to create a appointment like web page and this method is needed so as to ensure that similar timing is not chosen the second time by disabling the radio button if similar timing exist in the database.
The question is i cant figure out a way to achieve what i want. Reason is because i have no idea how to store the data from the database so as to compare it with the text of the radio button.

Could anyone help me on this? Thanks in advance

toraj58
January 12th, 2009, 01:41 AM
the counterpart filed of the radio button in the SQL SERVER database is BIT and in MySQL is Tiny Int and 1 is equal to True and 0 is equal to false.
Note: i assumed you want comapre with the state of the radio button (selected/ not selected) not as you said with the text of the radio button.