First don't put numeric if in quotes. And to be sure it is numeric use is_numeric function like this:
Code: 
    
if ( is_numeric($val1) && is_numeric($val2) )
    {
       if($val1 > 0 && $val2 == 0)
         {$blog_content.='<font color=green>100% voted for working links !</font>';}
       if($val2 > 0 && $val1 == 0)
         {$blog_content.='<font color=red>100% voted for dead links !</font>';}
       elseif($val2 > $val1)
         {$percent = number_format(($val2 * 100) / $val1); 
	$blog_content.='<font color=red>'.$percent.'% voted for dead links !</font>';}
       else 
         { if($val1 > $val2)
	{ $percent = number_format(($val1 * 100) / $val2); 
            $blog_content.='<font color=green>'.$percent.'% voted for working links !</font>'; }
          }
    }
Lock Down Reviewed by Lock Down on . [html] align problem Hi ! When i tried <img align=left src=bbb.gif><p align=left>sometext</p> i get some <br> or top margin . How to make this at one line ? Rating: 5