effettui la connessione al database
poi setti la variabile utente esempio
$utente=$_POST['utente'] io uso post perchè nel form ipotizzio che la passi con un post e non con un get
poi esegui la query sul database del tipo
$sql="SELECT * FROM NOMETABELLA WHERE utente (se il campo si chiama utente io l'ho chiamato così nell'esempio) = '$utente' ";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
if($count==1){
$_SESSION['utente']=$utente;
if($utente!="RENZO"){
QUI METTI IL NOME DELL'UTENTE SENZA COLORI ESEMPIO <td>$utente</td>;
}
else{
QUI METTI IL NOME DELL'UTENTE COLORATO ESEMPIO <td color="red">$utente</td>;
}
}
fine... capito?