I made a bunch of scripts for a site and all of them have a file that they all include, "common.php" and that is the script that includes all my pre made functions along with the database connection which looks like:
$jdbconnect = mysql_connect("localhost", $table, $pass);
mysql_select_db($database, $jdbconnect);
Of course I actually have the values in there instead of those variables. That is just for privacy. Anyways, the owner of the site downloaded a polls script to the site and added it and all that stuff is in a seperate database and it connects in the files that came with the script so the connections are in two different files. The poll is in the layout of the site. Now since that has been added, whenever I go to a my scripts it gives me an error saying that the database doesnt have the table. Now if I go to a script without the polls on it, it works perfectly.
Now what puzzles me is the error that says, "Table 'wdzone_adpo1.games' doesn't exist". Now my connection connects to a database called games not adpo1, that is the other database with the polls in it. Games is in the database called games. So somehow it is stopping my connection to the other database and is staying connected to the other database.
Any suggestions on how to fix this, or what is causing it? Thanks in advance.