hi,I am working on online examination project,i am adding questions into database from front end,it will add to database.
i have 6 columns ...Question,OptionA,OptionB,OptionC,OptionD,CorrectOption,and have two buttons insert and clear,when we need to enter question and answers one by one,and click on insert,then that question will be stored into database,here my problem iswhen i insert programs,like.......
What will be the output of the program ?
#include<stdio.h>
#include<string.h>
int main()
{
char sentence[80];
int i;
printf("enter a line of text");
gets(Sentence);
}
like this i want to insert step by step question in question textbox,but it is not inserting like this into database,it is stored like...................
#include<stdio.h>#include<string.h>int main(){char sentence[80];int i;printf("enter a line of text");gets(Sentence);}
how should i store step step by step into database
manimala