Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Problema con tabella

  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2010
    Messaggi
    200

    Problema con tabella

    Salve ragazzi, qualcuno di voi saprebbe dirmi perchè con questo codice riesco a vedere i dati della tabella ma non riesco a visualizzare la tabella html??
    Codice PHP:
    <?php 
    include('config.php');
    session_start();
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="stile.css" rel="stylesheet"  type="text/css"/>
    <title>Controllo transazioni</title>

    <script type="text/javascript">
    function MM_callJS(jsStr) { //v2.0
      return eval(jsStr)
    }

    function MM_showHideLayers() { //v9.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) 
      with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    </script>
    </head>
    <body onload="MM_showHideLayers('imgload','','hide')">
    <?php 
    session_start
    ();
    //se è effettuato l'accesso
    if (isset($_SESSION['user'])){
    //homepage utente    
    echo'<div class="cont"><div class="head">[b]'.$_SESSION['nome'].''.$_SESSION['cognome'].'[/b] sei conness';
    if (
    $_SESSION['sesso'] == 'M'){
        echo 
    'o';
        }else{
        echo 
    'a';
        }
        echo
    ' [url="logout.php"]Logout[/url]
        <span class="home"><a href ="pan.php">Pannello di controllo</a>[url="index.php"]Torna alla home[/url]</span>
    </div>'
    ;

        echo 
    ' <h4 align="center">Benvenuto nella sezione transazioni del nostro servizio di E-Banking</h4>';
        
    $user=$_SESSION['user'];
        
    $nome=$_SESSION['nome'];
        
    $cognome=$_SESSION['cognome'];
     
    '<table width="100%"  border="1">
      <tr>
        <th scope="col">Data</th>
        <th scope="col">Descrizione</th>
        <th scope="col">Importo</th>
      </tr>'
    ;
    $query "SELECT * FROM transazioni WHERE user = '$user'";  
    $result mysql_query($query) or die ("Errore: ".mysql_error()); 
    while (
    $record mysql_fetch_object($result)) {  
        echo 
    "<tr><td>".$record->data."</td>
        <td>"
    ;
        if(
    $record->verso== 1){
        echo
    "Hai effettuato un ".$record->tipo." a favore di ";
        }else{
        echo 
    "Hai ricevuto un ".$record->tipo." da ";
        }echo
        
    $record->altro."</td>
        <td>
    $record->importo</td></tr> ";  

    echo
    '</table>';


     

        echo 
    "
    "
    ;
        echo
    ' </div>
        <a href="index.php">
        <div id="e-bank"><img src ="img/e-banking-logo.png"</div>'
    ;
        }
    else{
    header("location:index.php");
    }
    ?>

    </body>
    </html>
    potete verificare qui (è brevettata per google chrome

  2. #2
    non hai messo l'echo per '<table.....'
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  3. #3
    Utente di HTML.it
    Registrato dal
    Nov 2010
    Messaggi
    200
    mmm grazie scusa l'ignoranza

  4. #4
    Originariamente inviato da foffo7
    mmm grazie scusa l'ignoranza
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

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.