Un errore che mi provoca alcuni script html
Salve gente ho problemi con questo script,si tratta nella parte dove c'è il script html non so il perchè ma i colori della pagina della scrittura e alcune barre grafiche mi danno problemi.
Codice:
<?
#dati modulo
$login = mysql_real_escape_string($_POST ["login"]);
$password = mysql_real_escape_string($_POST ["password"]);
#connetto a mysql
require ("connect_mysql.php");
$risultati_mysql = mysql_query( "SELECT * FROM utenti WHERE login='$login' AND password='$password'");
#sopprime gli errori con @
$num_righe=@mysql_num_rows($risultati_mysql);
if ( $num_righe != 0 ) {
echo ("
<html>
<head>
<title>Community</title>
<style type="text/css">
.style1 {
color: #FFFFFF;
}
.style2 {
color: #008000;
}
</style>
</head><body><p align="center"><body bgcolor="#000000">
<span class="style1">Benvenuto in Thebestchat $login !!!</span><br/><p align="center"><p align="center">
<span class="style1">$login ecco il tuo Menù!!!</span><br/></p>1)<b> </b><a accesskey="1" href="msg_privati.php">Vai in messaggi Privati</a><br/>
2)<b> </b><a accesskey="2" href="chatrooms.php?action=chat&sid=fa27374214d4345a7c0aedcb4af56ff6">ChatRoom</a><br/>
3)<b> </b><a accesskey="3" href="community/regolamento.html">Regolamento</a><br/>
4)<b> </b><a accesskey="4" href="pannello.php?action=uset&sid=fa27374214d4345a7c0aedcb4af56ff6">Modifica Profilo</a><br/><br/><br/><br/><br/>
<div class="sec" align="center" style="height: 36px">
<hr style="height: -43px" /><a href="index.htm">
Slogga<hr style="height: -12px" /></a><br/></div>
<p align="center" class="style2">Powered by Raziel
</body>
</html>
");
} else {
echo ("
<html>
<head></head>
<body>
<p align=\"center\">NON HAI LOGGATO RIPROVA</p>
<p align=\"center\"><a href=\"index.html\">Vai al login</a></p>
<p align=\"center\"><a href=\"nuovoutente.php\">registrati</a></p>
</body>
</hmtl>
");
}
mysql_close()
?>
invece questo funziona tranquilamente:
Codice:
<?
#dati modulo
$login = mysql_real_escape_string($_POST ["login"]);
$password = mysql_real_escape_string($_POST ["password"]);
#connetto a mysql
require ("connect_mysql.php");
$risultati_mysql = mysql_query( "SELECT * FROM utenti WHERE login='$login' AND password='$password'");
#sopprime gli errori con @
$num_righe=@mysql_num_rows($risultati_mysql);
if ( $num_righe != 0 ) {
echo ("
<html>
<head></head>
<body>
<p align=\"center\">Benvenuto $login</p>
<p align=\"center\"><a href=\"msg_privati.php\">Vai in Messaggi Privati</a></p>
<p align=\"center\"><a href=\"community/regolamento.html\">Regolamento</a></p>
<p align=\"center\"><a href=\"msg_privati.php\">Chat-Room</a></p>
<p align=\"center\"><a href=\"msg_privati.php\">Modifica profilo</a></p>
<p align=\"center\"><a href=\"index.htm\">Logout</a></p>
<p align=\"center\">Powered by Raziel</p>
</body>
</hmtl>
");
} else {
echo ("
<html>
<head></head>
<body>
<p align=\"center\">NON HAI LOGGATO RIPROVA</p>
<p align=\"center\"><a href=\"index.html\">Vai al login</a></p>
<p align=\"center\"><a href=\"nuovoutente.php\">registrati</a></p>
</body>
</hmtl>
");
}
mysql_close()
?>
spiegatemi che ce di sbagliato???