+ Responder ao Tópico



  1. #1
    jamba
    Visitante

    Padrão tilt

    galera to com problems

    na sou um programador nato em php e estou criando uma pagina e esta dando uns erros....alguem pode me ajudar??? o problema eh q nao esta aparecend como deveria ja tentei mudar tudo e nada.....o codigo eh este:

    <?php
    $includes = array("includes/cabecalho.inc","includes/menu.inc","includes/corpo.inc&quot<IMG SRC="images/forum/icons/icon_wink.gif">;

    for($j = 0 ; $j < 3 ; $j++){
    include $includes[$j]; }
    ?>
    <html>
    <table border="1" width="610" height="600" align="center">
    <tr>
    <td colspan="2">
    <?php
    if ($includes[$j])
    include $includes[0];
    ?>
    </td>
    </tr>
    <tr>
    <td width="150">
    <?php
    if ($includes[$j])
    include $includes[1];
    ?>
    </td>
    <td height="550">
    <?php
    if($includes[$j])
    include $includes[2];
    ?>
    </td>
    </tr>
    <tr>
    <td colspan="2" height="50">rodape</td>
    </tr>
    </table>
    </html>

  2. #2

    Padrão tilt

    <?php
    $includes = array("includes/cabecalho.inc","includes/menu.inc","includes/corpo.inc" <https://under-linux.org/images/forum...icon_wink.gif> ;

    for($j = 0 ; $j < 3 ; $j++)
    {
    include $includes[$j];
    }
    ?>
    <html>
    <table border="1" width="610" height="600" align="center">
    <tr>
    <td colspan="2">
    <?php
    //Cade seu "$i" ele só está lá no looping em cima!!!
    if ($includes[$j])
    include $includes[0];
    ?>
    </td>
    </tr>
    <tr>
    <td width="150">
    <?php
    //Cade seu "$i" ele só está lá no looping em cima!!!
    if ($includes[$j])
    include $includes[1];
    ?>
    </td>
    <td height="550">
    <?php
    //Cade seu "$i" ele só está lá no looping em cima!!!
    if($includes[$j])
    include $includes[2];
    ?>
    </td>
    </tr>
    <tr>
    <td colspan="2" height="50">rodape</td>
    </tr>
    </table>
    </html>

  3. #3
    jamba
    Visitante

    Padrão tilt

    neste comentario tenho q dar outrtro &acute;for&acute;???
    nao entendi direito

    <IMG SRC="images/forum/icons/icon_cool.gif"> <IMG SRC="images/forum/icons/icon_cool.gif"> <IMG SRC="images/forum/icons/icon_cool.gif">

  4. #4

    Padrão tilt

    poderia ser assim!
    mas vc tem que ajustar as medidas do colspan....

    <html>
    <table border="1" width="610" height="600" align="center">

    <?php

    $includes = array("includes/cabecalho.inc","includes/menu.inc","includes/corpo.inc" );

    for($j = 0 ; $j < 3 ; $j++){
    include $includes[$j];

    echo &acute;<tr><td colspan="300">&acute;;

    if ($includes[$j])
    include $includes[$j];

    echo "</td></tr>";

    }

    ?>

    <tr>
    <td colspan="2" height="50">rodape</td>
    </tr>
    </table>

    </html>

    acabei de editar ela reveja!

    [ Esta mensagem foi editada por: PiTsA em 05-06-2003 16:35 ]

  5. #5
    jamba
    Visitante

    Padrão tilt

    Nem rolou...pode ser por causa do menu q eh feito em java???
    Aparece uns 3 cabecalho 2 corpo 2 menus

  6. #6

    Padrão tilt

    vc ajustou o colspan?!
    teste isso para ver se funfa primeiro numa pagina limpa...
    depois vc coloca J A V A S C R I P T...
    java != J A V A S C R I P T

  7. #7
    jamba
    Visitante

    Padrão tilt

    Ainda nao consegui estou loko ja nem sei mais oq fazer
    Kra tb fix deste metodo mas o menu fica do lado de fora:
    <html>
    <table border="1" width="610" height="600" align="center">
    <tr>
    <td colspan="2"><?php include &acute;includes/cabecalho.inc&acute;?></td>
    </tr>
    <tr>
    <td width="150"><?php include &acute;includes/menu.inc&acute;?></td>
    <td height="550"><?php include &acute;includes/corpo.inc&acute;?></td>
    </tr>
    <tr>
    <td colspan="2" height="50">rodape</td>
    </tr>
    </table>