使用Vtiger SQL“插入”

时间:2014-07-23 22:18:29

标签: php sql vtiger

好的,我知道如何使用$row = $adb->query_result_rowdata($result, 0);来查询数据。插入语句怎么样?我将如何运行它并插入vtiger表。

1 个答案:

答案 0 :(得分:1)

以下是insert语句的一个示例。它会插入一个新通知:

$adb->query("INSERT INTO `vtiger_notificationscheduler`
  (`schedulednotificationid`, `schedulednotificationname`, `active`,
  `notificationsubject`, `notificationbody`, `label`)
  VALUES
  ($newnotifyid, 'LBL_NEWNOTIFICATION_TITLE', 1, 'Notification Subject',
  'This is a reminder notification for ...', 'LBL_NEWNOTIFICATION_DESC');");

我从这里开始:https://wiki.vtiger.com/index.php/Developers_How_To%27s#How_to_Create_A_New_Notification

似乎可以在此处找到有关adb对象的更多信息: http://api.vtiger.com/