in reply to cross platform

If you set your MySQL server up correctly the same script will run on either platform without change. I have dozens of scripts that do just that using DBI and DBD::mysql.

True laziness is hard work