in reply to CGI with mysql

Also check out the perl section of the (downloadable) MySQL reference manual. I found it a very succinct "how to".