Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create 2 checkbox for my program i need to know how can i make 1 from 2 checkbox data insert into database mysql??
Posted
Comments
hypermellow 18-Aug-14 3:52am    
Hi, can you post the code you have tried and where you are stuck?
Nileshbhai 18-Aug-14 4:20am    
can you please give some details. what you want to do exactly?
Member 10896203 18-Aug-14 4:35am    
I created two checkbox in vb.net and 2 data in the database to checkbox and name it as "male" and "female" for sex and how do I make the database read only one data wherever it mean when I click on the checkbox "male" only "male" data is displayed in the database ? because now when I press on a checkbox database data read both male and female at a time ..
Maciej Los 18-Aug-14 14:26pm    
ssql = "SELECT <Fields_list>" & vbcr & _
"FROM TableName" & vbcr
If CheckBoxMale.Checked Then
ssql = ssql & "WHERE SEX='Male'"
Else
ssql = ssql & "WHERE SEX='Female'"
End If
Member 10896203 18-Aug-14 21:57pm    
thanx for the answer..i will try first..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900