Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/07/2006, 23:34
n3m0
 
Fecha de Ingreso: julio-2006
Ubicación: Barcelona
Mensajes: 74
Antigüedad: 17 años, 9 meses
Puntos: 0
Problema con los if

Hola,

Os dejo aqui el codigo que hace el funcionamiento de una web que estoy haciendo pero tengo problemas con el code me salen aveces el contenido de dos if juntos es por el tema de los elses y demas aver si m podeis echar un cable para repararlo o ponerlo en case.

Un saludo, n3m0

Código PHP:
<?
if ($sec == 1) {
            if (
$ss == 1) {include 'ofertas_ins1.php';}
                                    else {include 
'ofertas_ins.php';}}
            
if (
$sec == 2){
            if (
$ss == 1) { 
                if (
$send == 1) {include 'ofertas_mod2.php';}
                elseif (
$del == 1) {include 'ofertas_mod3.php';}        
                    else {include 
'ofertas_mod.php';}}
            
//if ($ss ==2) {include ' title.php';}
                    
else {include 'ofertas_bus.php';}}
if (
$sec == 3){

            if (
$ss == 1) {
                                if (
$send == 1) {include 'curr_mod2.php';}
                                    elseif (
$del == 1) {include 'curr_mod3.php';}        
                                else {include 
'curr_mod.php';}}
                                
                                if (
$s==1) {include 'curr_form.php';}
                                elseif (
$msg==1) {include 'curr_msg.php';} 
                                elseif (
$s==2) {include 'curr_form2.php';}
                                else {include 
'curr_bus.php';}}

if (
$sec == 4){ echo "No me muestro";}

if (
$sec == 5){ echo "Yo tampoco";}