Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    Dubbio ... sintassi tabella

    In questo script secondo voi è sbagliata la sintassi tra td e tr ?
    Grazie
    Pier

    <?
    echo "<table border=5 cellspacing=4 cellpadding=4 width=80% height=80%>";

    if(file_exists('foto/'.$row[LISTA].'-'.$row[POSIZIONE].'.jpg')) {
    echo "<tr><td rowspan=10><center><a href=\"indexposta.php?N=$row[N]\" title=\"Acquista\"><img src=foto/$row[LISTA]-$row[POSIZIONE].jpg></tr>";
    }

    else
    {
    echo "<tr><td rowspan=10><center><img src=foto/1.jpg></tr>";
    }

    echo "<tr><td>N<td><p align='left'> $row[N]<font color='white'>LISTA</font><font color='white'> $row[LISTA]</font><font color='white'>POSIZIONE</font><font color='white'> $row[POSIZIONE]</font></tr>";
    echo "<tr><td>Autore<td><p align=justify> $row[AUTORE]</tr>";
    echo "<tr><td>Titolo<td><p align=justify> $row[TITOLO]</tr>";
    echo "<tr><td>Editore<td><p align=justify> $row[EDITORE]</tr>";
    echo "<tr><td>Anno<td><p align=justify> $row[ANNO]</tr>";
    echo "<tr><td>Descrizione<td><p align=justify> $row[DESCRIZIONE]</tr>";
    echo "<tr><td>Stato<td><p align=justify>disponibile</tr>";
    echo "<tr><td>Prezzo<td> € $row[PREZZO],00</tr>";
    echo "<tr><td colspan=2><center><a href=\"Condizioni.php\" target=\"_parent\" title=\"Condizioni di vendita\">Condizioni di vendita</a>


    <a href=\"indexposta.php?N=$row[N]\" title=\"Acquista\"><img border=0 width=50 height=60 src=\"icona carrello.gif\"></a></tr>";

    echo "</table>";
    mysql_close($db);
    ?>

  2. #2
    qui
    echo "<table border=5 cellspacing=4 cellpadding=4 width=80% height=80%>";

    if(file_exists('foto/'.$row[LISTA].'-'.$row[POSIZIONE].'.jpg')) {
    echo "<tr><td rowspan=10><center><a href=\"indexposta.php?N=$row[N]\" title=\"Acquista\"><img src=foto/$row[LISTA]-$row[POSIZIONE].jpg> -- QUI -- </tr>";
    }

    non chiudi il </td>
    Soluzioni Hosting
    http://www.crabservice.com

  3. #3
    ok ma forse anche al fondo non chiudo il </td> o sbaglio ?
    Scusate ma il mal di testa ormai è avanti...

  4. #4
    e poi in ogni riga del tipo:
    echo "<tr><td>Autore<td><p align=justify> $row[AUTORE]</tr>";

    prima di aprire un altro td non bisogna chiudere il precedente ?

  5. #5
    hai fatto venire il mal di testa anche a me...

    <?
    echo "<table border=5 cellspacing=4 cellpadding=4 width=80% height=80%>";

    if(file_exists('foto/'.$row[LISTA].'-'.$row[POSIZIONE].'.jpg')) {
    echo "<tr><td rowspan=10><center><a href=\"indexposta.php?N=$row[N]\" title=\"Acquista\"><img src=foto/$row[LISTA]-$row[POSIZIONE].jpg></td></tr>";
    }

    else
    {
    echo "<tr><td rowspan=10><center><img src=foto/1.jpg></td></tr>";
    }

    echo "<tr><td>N</td><td><p align='left'> $row[N]<font color='white'> LISTA</font><font color='white'> $row[LISTA]</font><font color='white'> POSIZIONE</font><font color='white'> $row[POSIZIONE]</font></td></tr>";

    echo "<tr><td>Autore</td><td><p align=justify> $row[AUTORE]</td></tr>";
    echo "<tr><td>Titolo</td><td><p align=justify> $row[TITOLO]</td></tr>";
    echo "<tr><td>Editore</td><td><p align=justify> $row[EDITORE]</td></tr>";
    echo "<tr><td>Anno<td><p align=justify> $row[ANNO]</tr>";
    echo "<tr><td>Descrizione</td><td><p align=justify> $row[DESCRIZIONE]</td></tr>";
    echo "<tr><td>Stato</td><td><p align=justify>disponibile</td></tr>";
    echo "<tr><td>Prezzo</td><td> € $row[PREZZO],00</td></tr>";
    echo "<tr><td colspan=2><center><a href=\"Condizioni.php\" target=\"_parent\" title=\"Condizioni di vendita\">Condizioni di vendita</a>


    <a href=\"indexposta.php?N=$row[N]\" title=\"Acquista\"><img border=0 width=50 height=60 src=\"icona carrello.gif\"></a></td></tr>";

    echo "</table>";
    mysql_close($db);
    ?>
    Soluzioni Hosting
    http://www.crabservice.com

  6. #6
    Ok ti ringrazio ora mi è chiaro, ma cosa avrebbe comportato tale dimenticanza ?
    Sul mio pc e brower funzionava tutto ugualmente !

    Grazie
    Pier

  7. #7
    prova con browser diversi.. cmq più è corretta la sintassi meglio è per tutto/i
    Soluzioni Hosting
    http://www.crabservice.com

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.