PHP Code:
$con = mysql_connect($serveraddress,$serveruser,$serverpass);
mysql_select_db("website",$con);
$get_chars = mysql_query("SELECT * FROM users WHERE id = '".$account_information['id']."'");
while($font = mysql_fetch_array($get_chars))
{
$fontcolor = $font['vote_points'];
echo $fontcolor;
}
if ($fontcolor="10")
{
echo '<font color="green">';
}
else
{
echo '<font color="red">';
}
echo "<td>" . $row['price'] . " Vote Points</td>";
echo "</tr>";
}
echo "</table>";
That's more now just to test the font color change and that's not even taking into place. I've echoed the values to enure they're read correctly and they are, so I don't know what's going on.