Unstoppable Domains

One database for many minisites, is it possible?

Spaceship Spaceship
Watch

okapi

Established Member
Impact
5
Hi all,

I'm looking for a CMS to develop about 10 minisites, each one on a different domain, with only one installation and one mysql database.

Is it possible?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Yes, you can set up a database on one site / server and connect to it from another site/server. You can then pull whatever information you want from the DB.

Code:
	$dbName='NameOfDatabase';
	$dbUser='DatabaseUser';
	$dbPass='DatabasePassword';
	$dbServer='Server/Host';
	
	mysql_connect ($dbServer, $dbUser, $dbPass) or die ('Error connecting to the database because: ' . mysql_error());

Just set the $dbServer to where the db is hosted.
-Bob
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer

We're social

Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back