1
我創建了一個vTiger以外的web表單,我想將它推入vTiger使用的數據庫。將網絡表單推送到vTiger
這是該數據推到數據庫的SQL代碼:
$sql="INSERT INTO vtiger_potential(potentialname)VALUES('$company_name', '$potential_no')";
這是我似乎得到了錯誤:
Cannot add or update a child row: a foreign key constraint fails (`vtigercrm530/vtiger_potential`, CONSTRAINT `fk_1_vtiger_potential` FOREIGN KEY (`potentialid`) REFERENCES `vtiger_crmentity` (`crmid`) ON DELETE CASCADE)
關於如何解決此問題的任何想法?