Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/05/2012, 05:30
kfh1992
 
Fecha de Ingreso: diciembre-2011
Mensajes: 414
Antigüedad: 12 años, 4 meses
Puntos: 1
Respuesta: Acceso solo administrador

Ok, me funciona y una pregunta, porque cuando pongo esto en finalizar sesión

mysql_query("UPDATE users SET online=0 WHERE mail='$mail' and password='$password' ") or die (mysql_error());

no me funciona,pero si finaliza sesion?

<?php
include("config.php");
mysql_query("UPDATE users SET online=0 WHERE mail='$mail' and password='$password' ") or die (mysql_error());
session_start();
session_unset();
session_destroy();
header("Location: index.php");
?>