Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/01/2008, 10:41
Avatar de rogertm
rogertm
Mod->Cuba
 
Fecha de Ingreso: julio-2005
Ubicación: /home/Cuba/Habana/rogertm/
Mensajes: 2.922
Antigüedad: 18 años, 9 meses
Puntos: 638
Re: mysql_affected_rows no me funciona!

hola, creo que este mensaje te puede ayudar:
Cita:
I see that when try to use mysql_affected_rows() with "mysql_pconnect(...)" without link indetifier as param in "mysql_affected_rows()" the result is allways -1.
When use link identifier "mysql_affected_rows($this_sql_connection)" - everything is Fine. This is is on PHP Version 5.2.0
Hope that this was helpfull for somebody
http://www.php.net/manual/es/functio...rows.php#75415
basicamente lo que entiendo y fue lo que me llamo la antencion fue esto, prueba hacerlo asi:
Código PHP:
printf("Records deleted: %d\n"mysql_affected_rows($sql)); 
saludos y suerte
__________________
Friki y Blogger por Cuenta Propia:213
Twenty'em: Theming is Prose