Hmm.. Seems good.. But, the only problem I can think off is, either $_SESSION['myusername'] is empty or the query returns records with null values.
Oh, hey btw, use { } for your while loop.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
Offline 3,878 posts
since Nov 2007