Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/05/2008, 19:05
Avatar de _cx
_cx
 
Fecha de Ingreso: diciembre-2007
Ubicación: Montevideo, Uruguay
Mensajes: 70
Antigüedad: 16 años, 5 meses
Puntos: 2
Re: por que puede ejecutarse if(!$variable)

extraído de www.php.net/mysql_query
Código:
mysql_query() will also fail and return FALSE  if the user does not have permission to access the table(s) referenced by the query.
lo que hace eso es si la consulta retorna FALSE (!$sql) hacer algo, por ejemplo avisarle al usuario o algo.

Saludos,
Cx