Echoing table contents
Yours is better.  Both are bad.
Don't use either of them
The mysql_* functions aren't a good way to learn how to interact with databases.  It is a shame that there are still tutorials teaching how to interact with databases using these functions.  Here is a snippet that explains more about why you shouldn't use those functions and what you can use instead:

Please, don't use mysql_* functions in new code. They are no longer maintained and the deprecation process has begun on it. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.Snippet Source

Minor Comments
You missed quotes around phone.
In pure PHP don't use an end tag ?&gt;.  It can cause output if you have blank lines after it causing headers to be sent prematurely (see this).