I can't get it working.
Here is my code how I print all questions. It works fine but it doesn't format the text.
How can I change the below code so it format the text what comes from mysql database.
for($i=1; $i<=$total_ques;$i++){
$question = "question".$i;
print "<tr><td><b>Question $i</b></td></tr>";
print '<tr><td>'.$$question.'</td></tr>';
}
(total_ques is something between 1-25)
I have form where is 1-25 textareas and user can write question in them. I only want to know that how can I keep the text at same format as the user writes it
|a b c|
|d e f|
|1 2 3|
Now it prints the above like |a b c||d e f||1 2 3|
So how can i keep the text same like user writes it?