So you just need to insert some php into wordpress?
I use this plugin for that:
http://wordpress.org/extend/plugins/shortcode-exec-php/It has a very useful backend where you type out your php code, then you just insert the wordpress shortcodes where ever you want.
As many as you need, just add another.