I work with football players, but players like Oxlade-Chamberlain are far to big to show on a card, so I want to change the font size when there are more then 15 characters. I use this
<?php
$sql = "SELECT * FROM `15players` WHERE `id`=" . $row['id'] . "";
$result = mysql_query($sql) or die('Query failed: ' . mysql_error());
$row = mysql_fetch_array($result);
if($row['Common_Name'] === NULL)
echo $row['Last_Name'];
else
echo $row['Common_Name'];
if ($row['Common_Name'] > 14 )
?>
So I want to change if ($row['Common_Name'] > 14 )
to something that can change my font-size when it is to big ( more than 14 characters)
Like Schweinsteiger fits perfectly (http://jterweele.informatica.bc-enschede.nl/speler.php?id=823) but Oxlade-Chamberlain is messing up everything (http://jterweele.informatica.bc-enschede.nl/speler.php?id=6997)
EDIT: I found the answer.