Click here to Skip to main content
14,668,908 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

Store it as a single string. The linefeeds will remain as part of the data. You shouldn't need sample code.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   
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
Rate this:
Please Sign up or sign in to vote.

Solution 3

See here[^].
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100