Hi:
I am not sure if I follow you, so if I am off the mark, please allow some latitude in your forgiveness.
Here is a simple example of the type of problem you are experiencing:
1) a function is defined
2) a function with the same name as the first is defined, OR the same function as the first is being re-defined.
Example:
<?php
function connect_db() {
echo 'something';
}
function connect_db() {
echo 'something else...';
}
?>
If you run that script, you will get the dreaded fatal error:
[INDENT]Fatal error: Cannot redeclare connect_db() (previously declared in C:\wamp\www\sandbox\test.php:3) ... [/INDENT]
So, if this is a function that you have created, then an easy fix is to use PHP's function_exists() function .
Hope that helps. If not, please pardon me.... LOOOOONG day... LOL!