Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/06/2006, 09:13
Avatar de saymon
saymon
 
Fecha de Ingreso: septiembre-2003
Ubicación: Panama
Mensajes: 318
Antigüedad: 20 años, 7 meses
Puntos: 0
bueno queba no me funcionó, hehehe

pero mira te mando mas info, este es el scrip completo


Código PHP:
<table width="30%" border="1">
        <tr>
          <td width="21%" bgcolor="#CCCCCC">Category</td>
          <td width="10%" bgcolor="#CCCCCC"># Galleries</td>
        </tr>
        <?php
              
include("../config.php");
$link=Conectarse();

  
// $result=mysql_query("SELECT COUNT(*) as act FROM from gallery where approve='approved' and caterory='Amateur' ",$link);  
     
   // $row = mysql_fetch_array($result));  
    
    
$result=mysql_query("Select category, Count(*) as num_categ From gallery Group By category",$link);
    
     
$row mysql_fetch_row($result)); 
    
?>
        <tr>
          <td>Category1</td>
          <td><? echo $row [1]; ?></td>
        </tr>
      </table>

y el error que me manda es este:

Parse error: parse error, unexpected ')' in /mounted-storage/home7/sub002/sc14169-CZUR/www/admin/count-gallery.php on line 44

eso me imagino puede ayudar bastante,

y muchas gracias por la respuesta