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