Thanks, mahi! I saved your code as test2.cgi and ran it from the browser. I don't see any output. Is it supposed to produce any output? I installed mysql quite a while ago and I'm not even sure if I had set a username and password. Is there a way to check?