Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/03/2010, 10:17
paulkees
 
Fecha de Ingreso: octubre-2004
Mensajes: 768
Antigüedad: 19 años, 6 meses
Puntos: 3
Respuesta: Quién está en linea

Hola juamd...

No entiendo bien tu pregunta. Teoricamente si no hay datos tiene que escribirlos cuando hago este "if"!

Código PHP:
if(mysql_num_rows($query) == 0) { 
mysql_query("INSERT INTO enlinea (usuario, ip, fecha) VALUES ('$usuario', '$ip',
 '$fecha')"
) or die(mysql_error());