Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/04/2015, 10:15
Avatar de gerrycrush
gerrycrush
 
Fecha de Ingreso: abril-2015
Ubicación: Mexico
Mensajes: 9
Antigüedad: 9 años
Puntos: 0
Exclamación ERROR: mysql_num_rows() expects parameter 1

Hola espero me puedan ayudar me bota este error no se por que:

Código PHP:

include_once("conexion.php");

    
$con = new DB;
    
$cliente $con->conectar();
    
$strConsulta "SELECT id_cliente, id_tipocliente, NombreContacto, ApellidosContacto from computo";
    
$cliente mysql_query($strConsulta);
    
$numfilas mysql_num_rows($cliente);
    
    echo 
'<table cellpadding="0" cellspacing="0" width="100%">';
    echo 
'<thead><tr><td>Id</td><td>Carrito</td><td>Nombre</td><td>Pdf</td></tr></thead>';
    for (
$i=0$i<$numfilas$i++)
    {
        
$fila mysql_fetch_array($cliente);
        
$numlista $i 1;
        echo 
'<tr><td>'.$numlista.'</td>';
        echo 
'<td>'.$fila['id_cliente'].'</td>';
        echo 
'<td>'.$fila['NombreContacto'].' '.$fila['id_tipocliente'].' </td>';
        echo 
'<td><a href="reporte_historial.php?id='.$fila['id_cliente'].'">Ver</a></td></tr>';
    }
    echo 
"</table>"
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\clinica\index.php on line 25

Última edición por gerrycrush; 17/04/2015 a las 10:17 Razón: Codigo de error