Jump to content

Fatal error: Cannot redeclare selected()


arthemiogod

Recommended Posts

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

[email protected]

Link to comment
https://forums.phpfreaks.com/topic/59160-fatal-error-cannot-redeclare-selected/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.