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