Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/04/2008, 14:47
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Re: como saber si ocurrio un error en una consulta a MYSQL en PHP

mysql_query te regresa false si ocurrió un error en tu consulta:
Código PHP:
if( mysql_query() ) {
   
// ok!
} else {
   
// error

Saludos.