Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/06/2008, 20:41
usuaria
 
Fecha de Ingreso: marzo-2007
Mensajes: 302
Antigüedad: 17 años, 1 mes
Puntos: 2
Pregunta Warning: mysql_num_rows(): supplied argument is not a valid MySQL

Tengo este error y nose como solucionarlo:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL

ya he leido los otros mensajes que se respondieron de este tema y no me sirvio ninguno.

este es el codigo:

Código:
$retiradas=mysql_db_query($database_cnx,"delete from autos where patente=('$elAuto')");
					echo "aca".$retiradas;  //ACA ME IMPRIME 1
					$num_re = mysql_num_rows($retiradas); //ACA ME TIRA EL ERROR
					if ($num_re!=0){
						$smsS="SE RETIRO EL AUTO ".$elAuto;	
					}else{
						$smsS="ESE AUTO NO SE ENCUENTRA";	
					}
ya probe el $retiradas=mysql_db_query($database_cnx,"delete from autos where patente=('$elAuto')") or die( mysql_error()) y no me tira ningun error.