Friday, 15 February 2013

php - Multiple Websites from One Database -



php - Multiple Websites from One Database -

i have number of franchisee websites, , want them pull info single database, if ever alter made can editing table data, opposed editing , uploading each website separately (would take ages!)

works fine on localhost using wamp (apache 2.2.22, php 5.3.13 , mysql 5.5.24) - sites displaying required info correctly.

problem is, when create new site in live environment after importing database , uploading site files i'm presented blank page. no error messages.

$pdo = new pdo("mysql:host=localhost;dbname=####dbname", '####username', '####password');

the sites hosted on same vps (parallels plesk 11.5.30)

any clues anybody?

cheers!

php html mysql database pdo

No comments:

Post a Comment