Ayuda me sale esto en php:
PHP Error Message
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/a9280901/public_html/verificainicio.php on line 35
Free Web Hosting
PHP Error Message
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a9280901/public_html/verificainicio.php on line 37
Free Web Hosting
EL USUARIO O LA CLAVE NO ESTAN REGISTRADOS
REGRESAR
PHP Error Message
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/a9280901/public_html/verificainicio.php on line 67
Free Web Hosting
Mi código es:
Código PHP:
Ver original<?php
if ($_POST ['user']=="")
{
echo "INTRODUCE UN USUARIO";
echo "<br><a href='javascript:history.go(-1)'>REGRESAR</a>";
}
if ($_POST ['pass']=="")
{
echo "INTRODUCE UN PASSWORD";
echo "<br><a href='javascript:history.go(-1)'>REGRESAR</a>";
}
include("conexion.php");
$usuario_duplicado=mysql_query("SELECT * FROM acceso WHERE user='". $_POST["user"] ."'", $conexion);
if ($num_registros>0)
{
// Mostrar la pagina PRINCIPAL
$_SESSION["usuario"]=$fila["user"];
header("location:index.html"); }else
echo "EL USUARIO O LA CLAVE NO ESTAN REGISTRADOS";
echo "<br><a href='javascript:history.go(-1)'>REGRESAR</A>";
//$invalida="invalida";
?>