Originariamente inviato da stefano3804
Codice PHP:
session_start
$query
=mysql_query(" select * from utente where cognome='$loginUsername'");

//poi ti fai il while

while ($data mysql_fetchh_object($query)
{
echo 
"$data->cognome";

si ma questo dove lo piazzo?