I have a weird display problem with a program Im working on. The program is a simple directory. Here is the code where the problem is occuring:
<?php
$link = mysql_connect("localhost","root","") or die(mysqsl_error());
mysql_select_db("xs") or die(mysql_error());
$query = "SELECT state, compname, phone, web, description FROM client WHERE state = 'Georgia'";
$result = mysql_query($query, $link) or die(mysql_error());
$numclients = mysql_num_rows($result);
while ($row = mysql_fetch_array($result)) {
$compname = $row['compname'];
$phone = $row['phone'];
$web = $row['web'];
$description = $row['description'];
echo "<a href='".$web."' class=header>".$compname."</a>";
echo "<br />";
echo "<font class=call><i> Call them at ".$phone." or visit them at ".$web.". Please be sure and tell them that they were referred by <b>XS Marketing!</b></i>";
echo "<br /> <br />";
echo "<font class=description>".$description;
echo "<br /><br />";
}
?>
Here is a clip of my CSS file:
a.header:link {
font-size:20px;
color:#0033CC;
font-weight:bold;
text-decoration:none;
}
a.header:visited {
font-size:20px;
color:#0033CC;
font-weight:bold;
text-decoration:none;
}
a.header:hover {
font-size:20px;
color:#0033CC;
font-weight:bold;
text-decoration:none;
text-decoration:underline;
}
The problem is happening when I display $compname. The first $compname that displays is a different font than the rest. The funny thing is, when I resize the font using the CSS file, it all resizes, but its still a different font. I can't post a link because I'm working on it locally, but I have attached a screen shot (jpg) that shows the problem. You can see 4 $compnames listed (in blue). The first (Bosco Systems) is obviously a different font.
Thanks for any help guys!
Robert Wilson