Forum Moderators: buckworks

Message Too Old, No Replies

3 websites + 1 database

Is this possible or will I have problems?

         

sleepy

6:40 pm on Oct 4, 2003 (gmt 0)

10+ Year Member



Just wondering if its possible to run three seperate websites (different domain, homepage etc)using the one database.

For example
- site A allows users to search A (but not B or C results)
- site B allows users to search B (but not A or C results)

Thanks
steve

jamesa

7:14 pm on Oct 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using the same database on multiple sites is not a problem.

curlykarl

7:44 pm on Oct 4, 2003 (gmt 0)

10+ Year Member




I run two different domains with one database, no problems at all :)

Karl

davemarks

12:56 pm on Oct 5, 2003 (gmt 0)

10+ Year Member



The only thing you need to worry about is that the three sites are hosted in the same machine or at least the same network, so they all have high speed access to the database.

You then obvioulsy need to allow in your code some kind of mechanism to detect which site you're running and what data that site can search

sun818

3:53 pm on Oct 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have you considered maintaining each web site in a different table structures? If all three web sites are running the same script, rename the prefix of the tables with a unique identifer like 1_ (first site), 2_ (second site), 3_ (third site), etc.

ecommerce man

4:36 pm on Oct 6, 2003 (gmt 0)

10+ Year Member



I have a client who runs three "differn't" websites all using one database. No problems at all, presuming it's all set up corrently.

<further info>
He did this to create more brands and gain a larger market share. He's running Ecommerce sites, all using the same database. The reskinned sites are all targetted at slightly differn't markets, works a treat!
</further info>