Hi i need help on how to connect data from a dialog box to a sql database.
i want the the data in the control of the dialog to be added to the dialog when ok is clicked.
Hi i need help on how to connect data from a dialog box to a sql database.
i want the the data in the control of the dialog to be added to the dialog when ok is clicked.
sorry i meant i want the data in the control of the dialog to be added to the database each time the submit or ok button is clicked
So which of the following can you do?
- open a connection, and write a fixed string into your sql database
- on a button click, write the dialog contents to a local file on the file system
In other words, practice some intermediate steps.
Practice each unknown step in isolation, so you understand what each is about.
Breaking the problem down, creating simple tests to explore the parts you don't know, and adapting the parts you do know is all part of writing code.
For example, if you're stuck on the button press, there isn't a lot of point in immediately going into detail over the sql.
Show us what you can do.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
thank you very much, i would like to know the second option i.e writing the dialog content to a local file on the button click.