Well depending on what results you have displayed in bold, you're using the HTML <th> 
tag, which 
automatically bolds any text inbetween.

You should be a bit more consistent with its use:

* Your use: <td width=\"135\"><b>Class</b></th>
* Proper use: <td width=\"135\"><b>Class</b></td> or: <th 
width=\"135\"><b>Class</b></th>

Maybe that's it??
Russ

On Fri, 16 Nov 2001 12:53:07 +0100 Kevin Schaaps <[EMAIL PROTECTED]> wrote:

> Thanks Matt,
> 
> Here it is:
> 
> mysql_select_db ($dbname);
> 
> // -------------------------------------------------------------------------
> --
> //  FLEET LIST
> // -------------------------------------------------------------------------
> --
> $query = "SELECT sim_tbl.name as SimName, class_tbl.class as SimClass,
> type_tbl.type as ClassType, sim_tbl.npc as SimNPC FROM sim_tbl, class_tbl,
> type_tbl WHERE sim_tbl.class = class_tbl.id AND class_tbl.type = type_tbl.id
> AND sim_tbl.fleet = $fleet_id ORDER BY 1";
> // -------------------------------------------------------------------------
> --
> 
> $result     =   mysql_query($query);
> $num_rows   =   mysql_num_rows($result);
> 
> if ($num_rows != 0)
> {
>     print "
>         <table class=\"db1\">
>             <tr>
>                <td width=\"60\"></th>
>                <td width=\"135\"><b>Class</b></th>
>                <td width=\"135\"><b>Name</b></th>
>                <td width=\"135\"><b>Type</b></th>
>                <td width=\"135\"><b>NPC</b></th>
>             </tr>";
> 
>     while ($row = mysql_fetch_array($result))
>     {
> 
>         $name   =   $row["SimName"];
>         $class  =   $row["SimClass"];
>         $type   =   $row["ClassType"];
>         $NPC    =   $row["SimNPC"];
> 
>         if ($NPC == 1)
>         {
>         echo "
>             <tr>
>                 <td></th>
>                 <td>$class</th>
>                 <td>$name</th>
>                 <td>$type</th>
>                 <td>NON PLAYING SIM</th
>             </tr>\n";
>         }
>         else
>         {
>         echo "
>             <tr>
>                 <td></th>
>                 <td>class</h3></th>
>                 <td>$name</h3></th>
>                 <td>$type</h3></th>
>                 <td>ACTIVE SIM</h3></th
>             </tr>\n";
>         }
>     };
> }
> 
> "Matt Stewart" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > if you post a bit of the offending code then i'll have a look - sounds
> > strange though
> >
> > -----Original Message-----
> > From: Kevin Schaaps [mailto:[EMAIL PROTECTED]]
> > Sent: 16 November 2001 11:44
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-DB] PHP results bold in HTML
> >
> >
> > Hi everyone,
> >
> > I've noticed something strange, and I was wondering if you knew the
> answer:
> > When I put the results of a query on a HTML page, the data that comes from
> > the database (mysql) appears bold, while there is nothing to suggests it
> > needs to that that in the HTML coding.
> >
> > I would like to change this so that the information isn't bolded.
> >
> > Any ideas or suggestions on this rather strange issue would be greatly
> > appreciated!
> >
> > Yours,
> >
> > Kevin
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/01
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/01
> >
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

#-------------------------------------------------------#
                                
  "Believe nothing - consider everything"       
  
  Russ Michell
  Anglia Polytechnic University Webteam
  Room 1C 'The Eastings' East Road, Cambridge
  
  e: [EMAIL PROTECTED]
  w: www.apu.ac.uk/webteam

  www.theruss.com
                        
#-------------------------------------------------------#


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to