Two ways to do this...

One just use

echo "<pre>";
for($i=0; $i < sql->rows; i++){
        echo $values['grade'];
        echo $values['admno'];
}
echo "</pre>;

or create a table

<table>
for($i=0; $i < sql->rows; i++){
        <tr>
        
<td>$value['grade']</td><td>$value['grade2']</td><td>$value['grade3']</td><td>$value['grade4']</td>
        </tr>
}
</table>


*********** REPLY SEPARATOR  ***********

On 29/12/2002 at 11:39 PM Denis L. Menezes wrote:

>Hello friends,
>
>I have to put results of various departments in our school website. All
>results will go in the Mysql database. The problem is formatting the
>output. I have output something like this where the numbers shown are
>student marks :
>
>Quote
>
>Passed with Grade A :
>Adm nos : 8177   9822  1750  0059
>
>Passed with Grade B :
>Adm nos : 6614 8375 0837 1647 5490 3758 7388 7799
>
>Passed with Grade C :
>Adm nos : 9968  0298  1297  1254  4208 4911  6194  9903
>
>Unquote
>
>I made a multiline textboxes and used PHP script and input this in a
>LONGTEXT field in MySQL. Then I used PHP to output this field in a
>webpage. The formatting, carriage return, tabs etc are lost. Formatting is
>very essential in this document for us.
>
>Can someone tell me how to do this?
>
>Thanks
>Denis





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to