Thanks - that looks like the winning script. Unfortunately, I still get an error message:
Fatal error: Call to undefined function mysql_fetch_result()
I Googled that and found a discussion where someone concluded that the individual with the problem had a bad PHP or MySQL installation. They suggested they edit a php.ini file. I pasted in a link to the discussion, but my reply was blocked.
Anyway, do you think that could be my problem? I’d like to verify it before I start searching for hidden files and tampering with them. Thanks.