Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法更新vTiger服务器上的数据库_Php_Mysql_Crm_Vtiger - Fatal编程技术网

Php 无法更新vTiger服务器上的数据库

Php 无法更新vTiger服务器上的数据库,php,mysql,crm,vtiger,Php,Mysql,Crm,Vtiger,我正在为vTiger CRM开发一个android应用程序,当我从我的android应用程序创建一个新的联系人记录时,它会正确地添加到vTiger数据库(crmentity、contactdetails、contactaddress、contactsubdetails和contactscf)表中,我能够在我的android应用程序中找到相同的记录。但它不会显示在Vtiger web应用程序上(刷新页面时,此新记录不会显示在Vtiger web应用程序的列表视图中)。 我无法找出问题所在,我认为我

我正在为vTiger CRM开发一个android应用程序,当我从我的android应用程序创建一个新的联系人记录时,它会正确地添加到vTiger数据库(crmentity、contactdetails、contactaddress、contactsubdetails和contactscf)表中,我能够在我的android应用程序中找到相同的记录。但它不会显示在Vtiger web应用程序上(刷新页面时,此新记录不会显示在Vtiger web应用程序的列表视图中)。 我无法找出问题所在,我认为我的web服务有问题

非常感谢你的帮助

$result = mysql_query("INSERT INTO vtiger_crmentity (crmid,smcreatorid,smownerid,modifiedby,setype,createdtime,modifiedtime,version,deleted) 
values('37','1','1','1','1','2014-04-21 12:32:01','2014-04-21 12:32:01','1','1')") or die(mysql_error());

$result2 = mysql_query("INSERT INTO vtiger_contactdetails(contactid,contact_no,salutation, firstname, lastname, mobile, 
fax,title,department, reportsto, secondaryemail)
VALUES('37','1','$salutation', '$first_name', '$last_name', 
'$mobile_phone', '$fax', '$title', '$department', 
  '$reports_to',  '$secondary_email')") or die(mysql_error());

$result3 = mysql_query("INSERT INTO vtiger_contactsubdetails(contactsubscriptionid,homephone,otherphone, assistant)
VALUES('37','$homephone','$otherphone', '$assistant')") or die(mysql_error());

$result4 = mysql_query("INSERT INTO vtiger_contactaddress(contactaddressid,mailingcity,mailingstreet)
VALUES('37','$mailingcity', '$mailingstreet')") or die(mysql_error());


$result5 = mysql_query("INSERT INTO vtiger_contactscf(contactid) VALUES('37')") or die(mysql_error());


 $result6 = mysql_query("INSERT INTO vtiger_customerdetails(customerid,) VALUES('37')") or die(mysql_error());

我的建议是,您不应直接(从web应用程序或外部web连接)操纵
vtiger\u crmentity
,因为crmentity ID应由vtiger内部管理

另外,
vtiger\u crmentity
对于作为移动开发人员的您来说应该是完全无关的:您要么使用WebService API(),要么通过移动API使用JSON格式。 因为我没有找到移动Web服务指南,所以我写了自己的: