SAPRESTE DIRMI DOVE SBAGLIO? il serve è locale
<?php
$conn=mysql_connect("localhost", "root", "");
if(!$conn)
{
die ("connessione fallita
".mysql_error());
}

$db=mysql_select_db ("registrazione", $conn);
if (!$db)
{
die ("connessione al db fallita
".mysql_error());
}
?>
<html>
<head>
</head>
<body>
<form action="raccogli.php" method="post">
nome:

<input type="text" name="USER">

password:

<input type="text" name="PASSWORD">
<input type="submit" name="SUBMIT" value="clicca">
</form>
</body>
</html>
<?php
mysql_close($conn);
?>
//codice php...

<?php
$conn=mysql_connect("localhost", "root", "");
if(!$conn)
{
die ("connessione fallita
".mysql_error());
}

$db=mysql_select_db ("registrazione", $conn);
if (!$db)
{
die ("connessione al db fallita
".mysql_error());
}
?>
<?php
$USER=$_POST["USER"];
$PASSWORD=$_POST["PASSWORD"];

$query="INSERT INTO clienti (USER,PASSWORD)";
$query.="VALUES ('".$USER."','".$PASSWORD."');

mysql_query($query,$conn);
?>
<html>
<head>
</head>
<body>
</body>
</html>
<?php
mysql_close($conn);
?>

l'errore ke esce è questo:

Parse error: syntax error, unexpected $end in C:\Users\renato\Desktop\CARTELLA HTML\xampp\htdocs\raccogli.php on line 34