Codice PHP:
else {
move_uploaded_file($fileupload_temp, $target_path);
$msg = "<span class=\"style1\">Il file $fileupload_name é stato caricato con successo</span>
";
$img = "<p align=\"center\"><img src=\"image/$fileupload_name\" width=\"120\" height=\"80\"></p>";
$query = "INSERT INTO tb_foto (Id, FotoLink) VALUES ('','$fileupload_name')";
//Qui la query la fai eseguire con mysql_query???
mysql_query($query);
}
in alternativa posta l'errore che ti da...
PS $fileupload_name = $_FILES['img']['name']???
ciao