Forum Moderators: coopster
Example in the submission form
This is Line 1.
This is Line 2.
This is Line 3.
Example in the form used for printing
This is Line 1.This is Line 2.This is Line 3.
How can I get my printed output to look like it does in the submission form. Here is the code I am using to pull the information from the table. If someone could show me how to get the right output I would really be thankful.
<b>Summary </b><br><br> <?php
$result = mysql_fetch_array(mysql_query("SELECT SUMMARY FROM _clientsw_cases WHERE CASENUM = '{$_SESSION['CASENUM']}'"));
$user_val = $result['SUMMARY'];
$query = mysql_query("SELECT * FROM _clientsw_cases");
while($array = mysql_fetch_array($query)) {
if($array['SUMMARY'] == $user_val) {
print "<option value=$array[SUMMARY]>$array[SUMMARY]</option>";
}
}
?>
From the example, looks like an actual line break is needed.
print "<option value=$array[SUMMARY]>$array[SUMMARY]</option><br>";
Or is it getting late and I`m not seeing things correctly?
dc
Thanks for all your replies