$resim1 = "aaaa.com" ;

if ($resim= "xxxx.com") {
mysql_query("UPDATE xxxxxx SET resim='$resim1'")
}