Ver Mensaje Individual
  #10 (permalink)  
Antiguo 29/05/2005, 03:19
Boxy
 
Fecha de Ingreso: mayo-2005
Mensajes: 72
Antigüedad: 18 años, 10 meses
Puntos: 1
solo tenías que agregarle una llave:

Código PHP:
<?php
session_start
();
$User $_POST['username'];
$Pass $_POST['user_password'];
$Query mysql_query("SELECT * FROM usuarios WHERE username='$User' && user_password ='$Pass'"); 
if(
mysql_num_rows($Query) != 0) {
$data mysql_fetch_array($Query);
if(
$data['username'] == $User && $data['user_password'] == $Pass){ 
$session_register('username');
$session_register('user_password');
header("Location: index2.php");
} else {
echo(
"Usuario / Clave no son válidos, intente de nuevo...");
}
}
?>
y listo...