Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Dynamic Poll

Post new topic   Reply to topic
error: Fatal error: Cannot redeclare printnextpoll()
View previous topic :: View next topic  
Author Message
harrievries



Joined: 22 May 2005
Posts: 1

PostPosted: Mon May 23, 2005 8:32 am    Post subject: error: Fatal error: Cannot redeclare printnextpoll() Reply with quote

I tried to insert a second poll on one page and got the following error:

Fatal error: Cannot redeclare printnextpoll() (previously declared in /var/www/html/dynamicpoll/poll.php:111) in /var/www/html/dynamicpoll/poll.php on line 111

Can somebody help
Back to top
View user's profile Send private message Send e-mail
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 522
Location: South East Kentucky,U.S.A.

PostPosted: Mon May 23, 2005 11:11 am    Post subject: Reply with quote

Suggestion Idea


For each one of the files , copy and paste to a new folder.
Rename each of the files to something different.
For File A.php , make sure you scan each one of the files for any references to this file and change the name as well.


so example:

pollcount.php becomes => pollcountA.php

now open : => admin/poll_functions.php , use the find feature of notepad,etc.... and search for pollcount.php and replace with pollcountA.php

This is a slow and timely process , be careful or you'll have to start all over again from scratch.
It might be necessary to change the variable names also if you experience any problems afterwards.

The only other way that I can think of that you could do is to work with arrays in the original file.Unless you're very familiar with php , I would'nt suggest this.
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Dynamic Poll All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design