I just went back and checked everything. Here is what I did:
I inserted the following code into the top of the main php page of my database app found at mysite.com/employerbase/Employer_list.php
<?php
include_once "../wordpress/wp-load.php";
if (current_user_can("access_s2member_level1"))
{
// User is allowed to view, so display something here.
}
else
exit("Permission denied!");
?>
I logged into WP at mysite.com/wordpress/wp-login.php as Admin.
I checked under Settings > General and found:
Wordpress Address (URL) – http://mysite.com/wordpress
Site Address (URL) – http://mysite.com/wordpress
I checked the page called Employer Base and it has the address:
http://mysite.com/wordpress/employer-base
I checked the iframe which is generated by the Advanced iFrame plugin. It looks like this:
[advanced_iframe securitykey=”da39a3ee5e6b4b0d3255bfef95601890afd80709″ src=”http://mysite.com/employerbase/Employer_list.php” width=”100%” height=”1000px”]
I clicked View Page from the WP backend while logged in as Admin. The page displays normally except where the iFrame is located. Where the iFrame is located it reads:
Permission Denied!
Permissions for the file mysite.com/wordpress/wp-load.php are set at 755.
Do you have any other thoughts on what I should change to make this work?