Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/02/2010, 14:59
tactectictoctuc
 
Fecha de Ingreso: febrero-2010
Mensajes: 24
Antigüedad: 14 años, 2 meses
Puntos: 0
¿Porque me sale este mensaje?

Hola, haber si alguien me puede ayudar.

Me aparece este mensaje:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\web.php on line 21


el codigo es este:

Código PHP:
<head>
<title>identificando
</title>
</head>
<body bgcolor="303030">
<body text="#E5E5E5">
<font face="tahoma">
<font size="2">
<body link="#E5E5E5" vlink="E5E5E5">
<p align="center">
<STRONG>COMPROVANDO</STRONG>
<br><br>
<?
$host
="localhost";
$user="******";
$password="*******";
$db="********";
$enlace mysql_connect($host,$user,$password);
mysql_select_db($db,$enlace);
$consulta mysql_query("SELECT nombre FROM usuarios WHERE usuario LIKE '$usuario' and contraseña LIKE '$cont'",$enlace);
$datomysql_fetch_array ($consulta);
$cambia$dato["nombre"];
echo 
"<hr size = 10 color = ffffff width = 100% align = left>=";
if (
$dato ==""){
echo 
"Los datos no son correctos,  <a href=formregistrados.php>Volver";
}else{
echo     
"<STRONG>Bienvenido a nuestra web $cambia</STRONG>";
}
?>
Muchas gracias