Not relating to your PHP issue, but I don't recommend using frames on your site. This will cause you huge problems with the search engines.
Not relating to your PHP issue, but I don't recommend using frames on your site. This will cause you huge problems with the search engines.