"images/counter/0.png", "1" => "images/counter/1.png", "2" => "images/counter/2.png", "3" => "images/counter/3.png", "4" => "images/counter/4.png", "5" => "images/counter/5.png", "6" => "images/counter/6.png", "7" => "images/counter/7.png", "8" => "images/counter/8.png", "9" => "images/counter/9.png" ); // Connect to the database $link = mysql_connect("localhost","webuser","MegaGenetics"); mysql_select_db("megasoftwaredb"); if ($_GET[page_name]) { $sql = "SELECT views FROM hit_counter where page_name = '".$_GET[page_name]."';"; $result = mysql_query($sql); // assume we got something. We have bigger problems if this does not return anything $row = mysql_fetch_row($result); $hits = $row[0]; $height = 19; $width = strlen($hits) * 14; //$image = @imagecreatetruecolor($width,$height); $image = @imagecreate($width,$height); for ($i=0;$i