Upload Image and insert the name in Database

Upload Image and insert the name in Database

$files[] = $uploaddir .$file['name'];
 $photo=$_POST['photo'];
$query = mysql_query("INSERT INTO mosque VALUES('', '$nom', '$long','$lat','$photo','$adresse','$ville','$pays')", $this->db);
th name of photo has inserted ike this:C:fakepathChrysanthemum.jpg,
i want to insert just the name of image