Ver Mensaje Individual
  #15 (permalink)  
Antiguo 13/10/2008, 12:21
Avatar de masterojitos
masterojitos
 
Fecha de Ingreso: julio-2008
Ubicación: Lima Callao Chucuito
Mensajes: 1.931
Antigüedad: 15 años, 9 meses
Puntos: 105
Respuesta: Ayuda para pasar de secciones y y temas con get() sin MySql...

TE LO SOLUCIONO Y WAO QUE ME CANSO DE PENSAR AH, MAS FACIL ES CON BASE DE DATOS OE, JAJA..... A CIERTO, QUIZAS LO PONGA COMO APORTE??

Código PHP:
<?php
$operacion
[0]="operacion: alquiler";
$operacion[1]="operacion: venta";
$ambiente[0][0]="operacion: alquiler - ambiente: 1";
$ambiente[0][1]="operacion: alquiler - ambiente: 2";
$ambiente[1][0]="operacion: venta - ambiente: 1";
$ambiente[1][1]="operacion: venta - ambiente: 2";
$ficha[0][0][0]="operacion: alquiler - ambiente: 1 - ficha: 1";
$ficha[0][0][1]="operacion: alquiler - ambiente: 1 - ficha: 2";
$ficha[0][1][0]="operacion: alquiler - ambiente: 2 - ficha: 1";
$ficha[0][1][1]="operacion: alquiler - ambiente: 2 - ficha: 2";
$ficha[1][0][0]="operacion: venta - ambiente: 1 - ficha: 1";
$ficha[1][0][1]="operacion: venta - ambiente: 1 - ficha: 2";
$ficha[1][1][0]="operacion: venta - ambiente: 2 - ficha: 1";
$ficha[1][1][1]="operacion: venta - ambiente: 2 - ficha: 2";

if(isset(
$ope) and $ope!=""){
    if(isset(
$amb) and $amb!=""){        
        if(isset(
$fic) and $fic!=""){            
            echo 
$ficha[$ope][$amb][$fic];//MUESTRO LA FICHA RESPECTIVA
        
}else{
            for(
$i=0;$i<count($ficha[$ope][$amb]);$i++){
                echo 
'<a href="?ope='.$ope.'&amb='.$amb.'&fic='.$i.'">'.$ficha[$ope][$amb][$i]."</a><br>";//LISTO LAS FICHAS RESPECTIVAS
            
}
        }
    }else{
        for(
$i=0;$i<count($ambiente[$ope]);$i++){
            echo 
'<a href="?ope='.$ope.'&amb='.$i.'">'.$ambiente[$ope][$i]."</a><br>";//LISTO LOS AMBIENTES RESPECTIVOS
        
}
    }
}else{
    for(
$i=0;$i<count($operacion);$i++){
        echo 
'<a href="?ope='.$i.'">'.$operacion[$i]."</a><br>";//LISTO LAS OPERACIONES RESPECTIVAS
    
}
}
?>
SOLO HAY QUE CAMBIAR LOS CONTENIDOS O CREAR MAS. SUERTE.
__________________
Atte. MasterOjitos :ojotes:
Todo sobre Programación Web
Las ultimas tendencias en Efectos y Recursos Web: MasterOjitos Blog