Sorry, but I tried just a basic test run of this code and it didn't work too well. I got this:

"Parse error: parse error in [path]/test2.php on line 10"

I think that's the line with the while loop. I don't see any problem with it. Is there? All I did was try a test of the script by placing that code in a file and running it on the server. Should I have done something else?

By the way, I can't seem to figure out how to create a row in mySQL and phpMyAdmin. I have a database and a table with the fields you suggested, but I can't find a way to add a row. (ps-what's the "id" field for?)
_________________________
Matt