Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/06/2006, 08:15
Avatar de arielcasanova
arielcasanova
 
Fecha de Ingreso: octubre-2004
Ubicación: Bahía Blanca - Argentina
Mensajes: 332
Antigüedad: 19 años, 6 meses
Puntos: 1
Ok, me respondo a mí mismo:

[SCRIPT]
<?
include ("conexion.php");
$link = mysql_connect($host, $user, $pass);
mysql_select_db($base, $link);
$sql = "SELECT tipo, count(tipo) as tipos FROM busquedas GROUP BY tipo order by tipos desc";
$result = mysql_query($sql, $link);
if ($row = mysql_fetch_array($result)){
mysql_field_seek($result,0);
do {
echo "Segmento: ".$row['tipo']." cantidad: ".$row['tipos']."<br/>";
} while ($row = mysql_fetch_array($result));
} else {
echo "";
}

?> [/SCRIPT]

Y luego lo repito, poniendo marca en donde dice tipo, y combustible, etc.
__________________
Ariel Casanova
diseño y desarrollo web estratégico
www.emporia.com.ar