mi restituisce questo errore:
Parse error: parse error in C:\wamp\www\whoyou-ok\register.php on line 27
eppure il codice mi sembra corretto...
lo ri-posto:
Codice PHP:
<?php
require_once('constring.php');
$user=htmlspecialchars($_POST['username']);
$pswd=htmlspecialchars($_POST['password']);
/*
echo "username: $user
";
echo "password: $pswd";
*/
$Risultato=mysql_query("select * from login order by username", $constring);
if (!$Risultato)
{
die("La tabella selezionata non esiste " . mysql_error());
}
while ($riga=mysql_fetch_array($Risultato))
{
echo "
" . $riga['username'] . "</p>";
}
$Risultato=mysql_query("select * from login where username='$user', $constring);
if(mysql_num_rows($Risultato) !=0)
{
echo"L'username esiste già";
}
?>