Lista delle persone

"; $result = mysql_query("SELECT ID, Cognome, Nome, Tel, Email, Homepage FROM Persone ORDER BY Cognome"); $total_rows = mysql_numrows($result); $counter = 0; echo ""; echo ""; while($counter < $total_rows): $uid = mysql_result($result,$counter,"ID"); echo "\n"; $counter = $counter + 1; endwhile; echo "
Nome TelEmail
\n"; if(mysql_result($result,$counter,"homepage") != ""): echo ""; endif; echo mysql_result($result,$counter,"Cognome"); echo " "; echo mysql_result($result,$counter,"Nome"); if(mysql_result($result,$counter,"homepage") != ""): echo ""; endif; echo "\n"; echo mysql_result($result,$counter,"Tel"); echo "\n"; if(mysql_result($result,$counter,"Email") != ""): echo ""; echo mysql_result($result,$counter,"Email"); echo ""; endif; echo "
"; ?>