have alook at this one, i have one prob, dont know how your 'Results'
field does look like so i used ' '(or space) separator
hope it helps :-)
\n";
print " \n";
}
$content = "";
while($row=mysql_fetch_array($result))
{
$content .= "Identity : ".$row['GGID']."\n"
.= "
> Please note that the following is my code :
> Quote :
>
> if ($result=mysql_query($sql)) {
>$numofrows=mysql_num_rows($result);
> Print "Greengrass database has found the following result that
> matches
> your search";
> print " \n";
> print " \n";
> while($
> if ($result=mysql_query($sql)) {
> $numofrows=mysql_num_rows($result);
> Print "Greengrass database has found the following result that matches
>your search";
> print " \n";
> print " \n";
Add this line here ---> print "\n";
No longer need the BRs below
field and that is
the field named "Results".
Where do I put the tags for formatting the text contained in
the mysql field "Results"?
Thanks
Denis
----- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Denis L. Menezes'&
> 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 1
Two ways to do this...
One just use
echo "";
for($i=0; $i < sql->rows; i++){
echo $values['grade'];
echo $values['admno'];
}
echo ";
or create a table
for($i=0; $i < sql->rows; i++){
$value['grade']$value['grade2']$value['grade3']$value['grade4']
}
What does the database table(s) look like?
I don't understand what '0045' and '2354' are -- are they student no's?
Better questions get better answers :)
Justin
on 26/12/02 12:03 PM, menezesd ([EMAIL PROTECTED]) wrote:
> Hello friends.
>
> I work for a school where we need to put the clas
> I work for a school where we need to put the class results on to our
web,
> one for every class. We enter the marks in the database and this
should be
> displayed in a particular varying format as follows(an example) :
>
> Grade A Pass :
> 4554 7687 9834 2354 7671
>
> Grade B Pass :
> 0045 7612
8 matches
Mail list logo