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

arthemiofmx@yahoo.com

Link to comment
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.