PHP Code To Change Font Color in Table Cell

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mcubedma
Forum Newbie
Posts: 2
Joined: Fri Oct 30, 2009 6:43 pm

PHP Code To Change Font Color in Table Cell

Post by mcubedma »

I would appreciate help with the following snippet of my php code. I am just trying to change the font size in the row marked in red. The color is white, but I am unable to make the font larger.

Thank you very much.

Code: Select all

            
echo "<table>
<tr>
<th></th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
[color=#BF0000]echo "<td> <font color=#FFFFFF>" . $row['text'] . "</font> </td>";[/color]
echo "</tr>";
}
echo "</table>";
 
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP Code To Change Font Color in Table Cell

Post by requinix »

Use CSS to do this. <font> is ugly and stupid.

Here is a place to start.
User avatar
Mirge
Forum Contributor
Posts: 298
Joined: Thu Sep 03, 2009 11:39 pm

Re: PHP Code To Change Font Color in Table Cell

Post by Mirge »

tasairis wrote:Use CSS to do this. <font> is ugly and stupid.

Here is a place to start.
I have to admit, that's the first time I've seen anybody use a <font> tag in a LONG time... :drunk:
mcubedma
Forum Newbie
Posts: 2
Joined: Fri Oct 30, 2009 6:43 pm

Resolved: PHP Code To Change Font Color in Table Cell

Post by mcubedma »

I usually would, but it's not my website. I'm making a change for a friend and it's all in html. Anyway, I'm all set.
Post Reply