A que esta dando erro esta em vermelho<?php
if( $_GET['colunas'] == "id0001" ) {
include_once("colunas/premiotim.php");
} elseif( $_GET['noticias'] == "id0001" ) {
include_once("noticias/news-1.php");
}
} elseif( $_GET['noticias'] == "id0002" ) {
include_once("noticias/news-2.php");
}
else {
include "home.php";
}
?>

Me Ajudem Nesse Erro
Started By /%Hawk%\, 24/07/2003, 19:13
4 replies to this topic
#1
Posted 24/07/2003, 19:13
Ae galera, eu tava mexendo na query e tal, ta funcionando, mas quando eu adiciono mais um linha da erro, ae ela:
#2
Posted 24/07/2003, 19:59
qual erro?
#3
Posted 24/07/2003, 20:28
pode deixar, já concertei
#4
tfolima
Posted 24/07/2003, 20:56
<?php if( $_GET['colunas'] == "id0001" ) { include_once("colunas/premiotim.php"); } elseif( $_GET['noticias'] == "id0001" ) { include_once("noticias/news-1.php"); } elseif( $_GET['noticias'] == "id0002" ) { include_once("noticias/news-2.php"); } else { include "home.php"; } ?>
#5
Posted 24/07/2003, 20:56
o certo é:
<?php
if( $_GET['colunas'] == "id0001" ) {
include_once("colunas/premiotim.php");
} elseif( $_GET['noticias'] == "id0001" ) {
include_once("noticias/news-1.php");
} elseif( $_GET['noticias'] == "id0002" ) {
include_once("noticias/news-2.php");
}
else {
include "home.php";
}
?>
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)