Codice PHP:
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
$pass = "";
$db_host = "localhost";
$db_user = "root";
$db_password = "";
$db_name = "registrazione";
$db = mysql_connect($db_host, $db_user, $db_password);
mysql_select_db($db_name, $db);
//$query = "SELECT cognome,nome,email,username,password FROM utenti";
//$result = mysql_query($query, $db);
//while ($row = mysql_fetch_array($result))
//if ($row[username] == $_POST[userid]) $pass="a";
//while ($row2 = mysql_fetch_array($result))
//if ($row2[password] == $_POST[pwd]) $user="a";
//$query_dati=mysql_query(SELECT userid FROM tabella WHERE userid='".$_POST['userid']."' AND password='".$_POST['password']."' LIMIT 1");
$query_dati=mysql_query(SELECT userid FROM tabella WHERE userid='".$_POST[userid]."' AND password='".$_POST[password]."' LIMIT 1);
if(@mysql_num_rows($query_dati)==1){
$pass="ok";
}else{
$pass="errore";
};
mysql_close($db);
if ($pass == "ok") echo "Benevnuto nella zona riservata zukka web <a href=enter4337842453447ghsdY.php>Entra</a>";
if ($pass == "errore") echo "Errore password o userid errati";
?>
<p></p>
</body>
</html>
Ho inserito l'intero script, ma cosa significa T_STRING?