Re: PHP results bold in HTML

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: PHP results bold in HTML
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14389@lists.php.net to get a copy of this message
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 <k.schaaps@chello.nl> 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" <matt@netvirtua.com> wrote in message > > news:95C78551DA8AD41182CB00E018C2447E285AEA@comms.netvirtua.int... > > if you post a bit of the offending code then i'll have a look - sounds > > strange though > > > > -----Original Message----- > > From: Kevin Schaaps [mailto:k.schaaps@chello.nl] > > Sent: 16 November 2001 11:44 > > To: php-db@lists.php.net > > 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: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > --- > > 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: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > #-------------------------------------------------------# "Believe nothing - consider everything" Russ Michell Anglia Polytechnic University Webteam Room 1C 'The Eastings' East Road, Cambridge e: r.j.michell@apu.ac.uk w: www.apu.ac.uk/webteam www.theruss.com #-------------------------------------------------------#

« previous php.db (#14389) next »