Jump to content


Photo

Echo Não Funfa


  • Faça o login para participar
3 replies to this topic

#1 erwebsolution

erwebsolution

    12 Horas

  • Usuários
  • 207 posts
  • Sexo:Não informado
  • Localidade:Rio de Janeiro

Posted 14/03/2005, 16:21

Carissimos amigos do wm, HELLLLPPPPPP....

Eu fiz uma rotina simples de if e _get que naum funfa por nada desse mundo...

ele naum obtem a variavel _get e naum funfa uma simples funcao de Echo...

Preciso de ajuda... é urgente... o que está de errado no código?


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top"><table width="760" height="401" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="761" height="115" align="left" valign="top"> 
            <table width="100%" height="40%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="1%" height="115"><IMG SRC="images/base_06.gif" WIDTH=105 HEIGHT=115 ALT=""></td>
                <td width="99%" bgcolor="#00923F">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="70" height="124">&nbsp;</td>
                <td align="left" valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="5" cellspacing="0">
                    <tr>
                      <td height="30">&nbsp;</td>
                    </tr>
<?php
$area=$_GET["area"];
$tp=$_GET["tp"];

include("conteudo.php");

if($tp==1){
	echo "<tr><td>$titulo</td></tr><tr><td>$texto</td></tr>";
}
elseif ($tp==2){
	echo "<tr><td>$titulo</td></tr><tr><td>$texto</td></tr><tr><td>$titulo2</td></tr><tr><td>$texto2</td></tr>";
}
else{
	echo "deu pau 3";
};
?>
                  </table>
      </td>
                <td width="80">&nbsp;</td>
                <td width="310" align="left" valign="top" bgcolor="#FFFCC8"> 
                  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="60" bgcolor="#fffcc8">&nbsp;</td>
                    </tr>
                    <tr>
                      <td bgcolor="#fffcc8"><? echo $flash;?></td>
                    </tr>
                    <tr>
                      <td align="left" valign="top" bgcolor="#fffcc8"> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="26">
                          <tr>
                            <td align="left" valign="top"> 
                              <p><font face="Verdana"><IMG SRC="images/base_14.gif" WIDTH=92 HEIGHT=15 ALT=""><br>
                                <IMG SRC="images/base_17.gif" WIDTH=92 HEIGHT=11 ALT=""></font></p>
                              <p><IMG SRC="images/base_19.gif" WIDTH=194 HEIGHT=20 ALT=""></p>
                              </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>

Ele está imprimindo na tela todo o resto menos a parte de php....

Meu emprego está dependendo disso.. preciso descascar esse abacaxi até amanha... please help... :( :( :(
www.pixelsepontos.com.br

ernestop@pixelsepontos.com.br

www.parrotsplace.com.br
As mais belas aves no seu alcance

www.lugardasaves.com.br
Tudo sobre como criar as mais variadas espécies de aves

#2 diegors20

diegors20

    Turista

  • Usuários
  • 30 posts
  • Sexo:Não informado

Posted 14/03/2005, 16:51

Tentou apenas testar as variaveis sem colocar o $_GET[''];

Tenta apenas testar as variaveis...

comenta

$area=$_GET["area"];
$tp=$_GET["tp"];

tenta ver o que acontece... caso naum resolva, tentou ver se no seu:

include("conteudo.php"); não tem variaveis com o mesmo nome, e estão substituindo a variavel $tp?

Qualquer coisa dá um fala ai...

#3 JoinTek

JoinTek

    24 Horas

  • Usuários
  • 454 posts
  • Sexo:Masculino
  • Localidade:Santarém, PA

Posted 15/03/2005, 18:19

<?
include("conteudo.php");
if($tp==1){
echo "<tr><td>$titulo</td></tr><tr><td>$texto</td></tr>";
}
elseif ($tp==2){
echo "<tr><td>$titulo</td></tr><tr><td>$texto</td></tr><tr><td>$titulo2</td></tr><tr><td>$texto2</td></tr>";
}
else{
echo "Mensagem de erro, fica a gosto";
};
?>

#4 JoinTek

JoinTek

    24 Horas

  • Usuários
  • 454 posts
  • Sexo:Masculino
  • Localidade:Santarém, PA

Posted 15/03/2005, 18:19

<?
include("conteudo.php");
if($tp==1){
echo "<tr><td>$titulo</td></tr><tr><td>$texto</td></tr>";
}
elseif ($tp==2){
echo "<tr><td>$titulo</td></tr><tr><td>$texto</td></tr><tr><td>$titulo2</td></tr><tr><td>$texto2</td></tr>";
}
else{
echo "Mensagem de erro, fica a gosto";
}
?>

OPA!!!
TEm um ; depois da ultima } do else LOL!!




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq