I would start by checking the html tags - you've got a class call for the
table - check the stylesheet at the top of the document to see if it's
saying in class "table.db1" the text is all bold.
also, you seem to have some stray tags - surely the <td> start tag should
end eith a </td> rather than a </th>?
and  at the bottom of the code there are some </h3> tags - there don't seem
to be any <h3> start tags, so you can probably get rid of those too.
see if that helps at all, then post again if there are still problems with
the new code.

-----Original Message-----
From: Kevin Schaaps [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 11:53
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] PHP results bold in HTML


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]

---
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]

Reply via email to