in reply to mysql with perl or php

Are you looking for an excuse to learn PHP or are you trying to make a good web page as fast as you can? If the former, use php, if the latter use perl.

Php is nifty, but it certainly isn't _better_ than perl for what you're trying to do, so just go with what you know. Unless the real goal is to get to know something new...