Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Intrested Developer,
I am doing a standalone project on conducting exam. The application will conduct the exam related to different subjects.
My question is :-
As i am going to store the questions and their choices in database.
Then if i want to store a c, c++, java program code (as it is multiline) then how to
store them in the database..

Please Help me with the problem.
If you have any link or code to perform this please forward me at my email.
[email removed]
Thank You!
Posted
Updated 26-Aug-11 7:38am
v2
Comments
Sergey Alexandrovich Kryukov 26-Aug-11 13:40pm    
Not a question. If you want to store and retrieve something, do it. What's the problem, exactly?
--SA

Store it as a single string. The linefeeds will remain as part of the data. You shouldn't need sample code.
 
Share this answer
 
Well, examinations based on multi-select choices are killing the education, already killed big part of it. It does not promote any real knowledge. Many people prepare themselves to such exams, not learning anything in science. You're going to contribute to that — congratulations.

—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Aug-11 13:53pm    
Great, one person who received education based on multi-select choices is detected by voting "1". Congratulations! Anyone to join?
--SA
See here[^].
 
Share this answer
 

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