Il codice che hai postato NON invial alcunchè in output.

In ogni caso, guarda l'esempio del manuale ufficiale:

http://www.php.net/mysql_fetch_assoc Example #1 An expanded mysql_fetch_assoc() example