我最近购买了公司,包含不同客户的数据库的网站。它是建立。
我从它的移动网站现有的服务器(Linux)的我公司服务器(Windows Server 2008)。
我创建并导入数据库连接一切正常。
我仍然可以编辑现有的客户信息,但是当我试图这样的功能在停止工作的数据库中创建新条目。
我肯定没有文件被改变,这是一个在其他服务器上工作的函数。
这里是一段代码,进入信息
$sql = "insert into $DB.cleints (client_id, client_phone) values ($client_id, $client_phone) on duplicate key update client_id='$client_id', client_phone='$client_phone'";
mysql_query($sql);
if (mysql_errno() != 0) {
echo "Sorry, there was an error adding this client";
echo "\nsql=$sql\n";
echo mysql_error();
}
它回应什么? – 2011-03-15 16:01:28
是正确拼写的“$ DB.cleints”吗? – heldt 2011-03-15 16:01:36
'$ DB.cleints'? – Mat 2011-03-15 16:01:39