arthemiogod Posted July 9, 2007 Share Posted July 9, 2007 hi, i am a novice doing php and i am working on a site with uses the <?php include_once()- i the original file has this code at end of page to call for a right side navigation bar. now i a adding a second navigation bar on the left and i'm such error. Fatal error: Cannot redeclare selected() (previously declared in /home/.castor/realestatearts/realestatearts.com/clients/prud/current/subnav_left_rental.inc.php:2) in /home/.castor/realestatearts/realestatearts.com/clients/prud/current/subnav_rental.inc.php on line 2 any help, please. Arthemio arthemiofmx@yahoo.com Quote Link to comment Share on other sites More sharing options...
Wildbug Posted July 9, 2007 Share Posted July 9, 2007 It looks like there is a function definition in the included file, and when you try to include it twice, PHP notices that the function is already defined and refuses to define it again. You may be able to move the function up into a "higher" file, maybe the one doing the including. Quote Link to comment Share on other sites More sharing options...
arthemiogod Posted July 9, 2007 Author Share Posted July 9, 2007 ohh my, i fixed it!! well, you helped me do so. i am very happy i was able to do so. php rock! thx again. i will stick around to learn much from you all. Arthemio Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.