Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/06/2004, 04:25
Avatar de cometron
cometron
 
Fecha de Ingreso: mayo-2003
Ubicación: Madrid
Mensajes: 151
Antigüedad: 20 años, 10 meses
Puntos: 0
Juer me he comido codigo perdon jejeeje:

<html>
<head>
<title>Aplicación segura</title>
</head>

<body>

<?
$user=$_SESSION['usuario'];
$pass=$_SESSION['contrasena'];


$con_db=mysql_connect("localhost","root"," ");
mysql_select_db("dw_mysql",$con_db);
$registros=mysql_query("Select * from datos where Nombre='$user' AND DNi='$pass'");
if(mysql_num_rows($registros!=0))
{
$row=mysql_fetch_array($registros);
$nombre=$row['Nombre'];
$dni=$row['DNI'];
echo "$nombre";
echo "$dni";

}



<br>
<a href="salir.php">Salir</a>
</body>
</html>


A ver si asi te funciona