PDA

View Full Version : php mysql problem ?



nickrazer
02-12-2005, 06:38 PM
I am running two identical sites under different domain names. Each uses the same php code ...I have each site setup in a different database with different user nmaes and passowrds.. The problem is it seems mysql calls are getting mixed up...

for instance one of my calls if to display the last user.

the last user on site 1 is being displayed on site 2 and vice versa ....

I am not sure if this makes sense...any help would be appreciated..

jalal
02-13-2005, 02:04 AM
A wild guess... they are somehow reading the same configuration file?

Also, check with MyPhpAdmin to see what you actually have in the databases.

nickrazer
02-13-2005, 03:40 PM
Hiya,

Yeh the config files are different and pointing to different mysql databases. All the databases are populated with different info, but the functions seem to still be shared ...


Nick

sunzon
02-13-2005, 04:05 PM
Offhand I tend to think like Jalal..... a config problem somewhere (since you use the same php code so probably ommitted a differentiation somewhere).

Some tests should help locate this.
Try renaming the database on site1 temporarily to something else, see what happens when you query on site2.