grazie, fatto ma genera un errore, il codice che ho scritto è :
codice:
<?php session_start();
$nomeutente = $_SESSION['nomeutente'];
....
function display_db_table($tablename, $connection, $header_bool, $table_params, $nomeutente) {
$query_string = "SELECT * FROM $tablename WHERE ". $nomeutente." '= {$_GET['utente']}'" ;
display_db_query($query_string, $connection,
$header_bool, $table_params);
}
?>
<HTML><HEAD><TITLE>Displaying a MySQL table</TITLE></HEAD>
<BODY>
<TABLE><TR><TD>
<?php
$table = "student";
display_db_table($table, $global_dbh,TRUE, "border='2'", $nomeutente);
?>
</TD></TR></TABLE></BODY></HTML>
l'errore generato é:
server version for the right syntax to use near ''= ''
grazie