Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/10/2008, 10:14
Zidencjb
 
Fecha de Ingreso: octubre-2008
Mensajes: 102
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Un include segun opción elegida

$query = mysql_query("SELECT username,password FROM users WHERE username = '$username'") or die(mysql_error());
$row = mysql_fetch_array($query);
$_SESSION["s_username"] = $row['username];

Puede ser por

$query = mysql_query("SELECT username,password,opcion FROM users WHERE username = '$username'") or die(mysql_error());
$row = mysql_fetch_array($query);
$_SESSION["s_username"] = $row['username];
if($row[opcion]=='si')
{
header('location: pagina1.php');
}
else if($row[opcion]=='no')
{
header('location: pagina2.php');
}