我需要在我的网站中显示来自另一个网站的数据,我有拖车站点的控制面板,但我需要动态方式来连接它们
website 1 website 2
***** *****
* A * <<<< =Data== * B *
***** *****
所以我写
$link = @mysql_connect("Ip Addres to another website","username for mysql 2","passowrd 2 ")or die("Couldn't make connection.");
@mysql_select_db("qatarlab_test",$link)or die("Couldn't select database");
$factorRes = @mysql_query("SELECT count(id) FROM `factor` ");
$factorRow = @mysql_fetch_array($factorRes);
echo $factorRow[0];
但什么也没发生