in the connections/powergalleryconnection.php file, change line 9:
$powergallery = mysql_pconnect($hostname_powergallery, $username_powergallery, $password_powergallery) or trigger_error(mysql_error(),E_USER_ERROR);
to:
$powergallery = mysql_connect($hostname_powergallery, $username_powergallery, $password_powergallery) or trigger_error(mysql_error(),E_USER_ERROR);