Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/01/2009, 18:26
American2010
 
Fecha de Ingreso: abril-2003
Mensajes: 1.129
Antigüedad: 21 años, 1 mes
Puntos: 34
Respuesta: No se

Bueno bueno, investigando un poco y con algo de suerte, llegué a algo así... Funcionar... funciona...

ahora si es bonito o correcto hacerlo así, no lo se...

Código PHP:
<div id="wrapcontent">
<h2>Cameras in <?php echo $continente?></h2>

<?php
$show
=mysql_query("SELECT Country FROM Cameras WHERE Continent='$continente' GROUP BY Country");
while (
$row mysql_fetch_array($show)){
$country=$row['Country'];
$count=mysql_query("SELECT * FROM Cameras WHERE Country='$country'");
$num_rows mysql_num_rows($count);
?><h2><?php echo $row['Country']; ?> (<?php echo $num_rows?>)</h2>
<?php }
?>
</div>
Eso me devuelve...

Cameras in Oceania
Australia (3)
Guam (1)
New Zealand (2)
__________________
elGastronomo