Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/11/2006, 11:53
Avatar de JAK^
JAK^
 
Fecha de Ingreso: octubre-2005
Ubicación: ^^CaMiNiTo Al CoSTaDo DeL
Mensajes: 850
Antigüedad: 18 años, 6 meses
Puntos: 4
ya esta ya me salio jejej
aki les dejo el code por si alguno nececita hacer algo asi
[PHP]
<?
include ("conexion.inc");

$sql_a="select * from cat where parent=0";

$run_a=mysql_query($sql_a, $coneccion);

while ($row_a= mysql_fetch_array($run_a)) {

$sql_b="select * from cat where parent='$row_a[id]'";
echo ". ".$row_a[nombre]."<br>";
$run_b=mysql_query($sql_b, $coneccion);
while ($row_b= mysql_fetch_array($run_b)) {

echo ".. ".$row_b[nombre]."<br>";

}
}
?>
saludos gracias
__________________
hola . . .