Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/07/2010, 18:04
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: Problema con un while...

yo lo pondria asi ya que el mysql_num_rows me permite saber si tengo registros
Código PHP:
$query="SELECT * FROM gallery_category ORDER BY category_id DESC LIMIT 4"
$read=mysql_db_query($database,$query,$conn); 
if(
mysql_num_rows($read)) 

    while(
$print=mysql_fetch_array($read)) 
   { 
   }