I know it's possible for TWO different sites to use the same database. Let me explain. I have siteA and it runs a forum. Through the site, users of the forum can login using their forum ID. I now create siteB on a different domain, but on the same hosting service. I want users from siteA to be able to login with their name from that site on siteB. How would I do this? I'm using myBB as my forum software.
MyBB is the only software. I uploaded MyBB on the other site as well, though I didn't install because I assume it would run off the other site's database as well. These are the only software/scripts running. I hope that answered your question.
If its the same software, then in the scripts config you should be able to just specify the same database and have it work. Hypothetically of course
Nope. I don't think that would work, well I know it won't cause I tried. I don't think it works because they are two seperate domains so they're somewhat seperated but on the same server. SiteA has the database joshb_forum. I put that in the config file and I get this: Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/joshtb/public_html/forum/inc/db_mysql.php on line 313 MySQL error: Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/joshtb/public_html/forum/inc/db_mysql.php on line 314 Query: Any ideas?
Try searching for how to move MyBB from different hosts on google, because you should be able to find info on how to use a pre-existing database for your script.
yeah should be quite easy if you have both sites on the same shared webspace. would be more tricky if you had this sites on 2 different servers, most providers dont allow remote calls for databases.
every cpanel server does, and you wouldn't have to use the database, you could create a "server" script, that echos data in a way that a "client" script can turn into pretty html....