![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/05/2005, 06:36
|
![Avatar de 8461277](http://static.forosdelweb.com/customavatars/avatar28541_1.gif) | | | Fecha de Ingreso: diciembre-2002 Ubicación: san juan de los morros
Mensajes: 887
Antigüedad: 22 años, 2 meses Puntos: 1 | |
Cluster garcias por tu ayuda, aqui esta el codigo completo:
<?
$conn = mysql_connect("localhost","root","");
mysql_select_db("noti_php",$conn);
$ssql = "SELECT * FROM acceso WHERE BINARY nombre='".$_POST['usuario']."' and clave=MD5('".$_POST['clave']."')"; // Usa variables superglobales
echo $ssql;
$rs = mysql_query($ssql,$conn) or die (mysql_error());
if (mysql_num_rows($rs)!=0){
session_start();
$_SESSION['autentificado'] = 'SI';
header ("Location: index.php");
}else {
header("Location: pgerror.php");
}
mysql_free_result($rs);
mysql_close($conn);
?>
saludos
__________________ Miguel Padrón :cool: |