I have a common.php file which connects to my database. This uses
[php]function DBConnect(){[/php]
I am trying to add a script to my website (five star rating system). Everything works fine but the script has it’s own settings.php file which connects to the database and this uses
[php]function connect(){[/php]
If I try to replace all references in the php files for
[php]function connect(){[/php]
with
[php]function DBConnect(){[/php]
I get this error.
Call to undefined function connect() in /rate.php on line 8
Line 8 :
[php]connect();[/php]
I would prefer to use my common.php. How do I fix this?