$detection = detectjar($thumb);
if($detection < 10){
// money jar is gone!
?>
Money jar is GONE!
}
else{
// money jar is still there
?>
Money jar is still there
echo $detection;
}
//echo detectjar($tempjarimage);
//echo detectjar($nojarimage);
imagedestroy($image);
imagedestroy($thumb);
?>