272) { resize_img(272, $photo, $photo); } $sql = "UPDATE users SET photo='$name' WHERE id=$_SESSION[id]"; mysql_query($sql); }