Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/05/2008, 13:18
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
error mysql_fecth_assoc

alguien ve pq me sale este error????
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/indexa/public_html/latiendadelpintor/admin/prueba.php on line 10
Código PHP:
<?php   
include ('conect.php');  

$sqlex="SELECT `email`, COUNT(*) AS 'total', SUM(`monto`) AS 'suma' FROM `factura` GROUP BY `email`";  
$sql_execex=mysql_query($sqlex);  
?>
<?php 
$sql2
="SELECT * FROM clientes WHERE email=".$rowex['email'];
$sql_exec2=mysql_query($sql2);  
while(
$row2=mysql_fetch_assoc($sql_exec2)){?>  

<table width="955" border="0" cellspacing="0" cellpadding="0">  
  <tr>  
    <td><table width="200" border="1" bgcolor="#999999">  
     <? while($rowex=mysql_fetch_assoc($sql_execex))  
{  
 
?> 

      <tr>  
          <td width="80" bgcolor="#FFFFFF"><?php echo $rowex['suma']; ?></td>  
          <td width="80" bgcolor="#FFFFFF"><?php echo $rowex['total']; ?></td>  
          <td width="40" bgcolor="#FFFFFF"></td>  
        </tr><?php }?> 
        <?php }?>      
      </table>  
</td>  
  </tr>
gracias
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...