本文整理汇总了PHP中DoInsertRecord函数的典型用法代码示例。如果您正苦于以下问题:PHP DoInsertRecord函数的具体用法?PHP DoInsertRecord怎么用?PHP DoInsertRecord使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DoInsertRecord函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
$msg = substr($msg, 4);
}
$pageObject->jsSettings['tableSettings'][$strTableName]['msg_passwordError'] = $msg;
$allow_registration = false;
}
}
$retval = true;
if ($allow_registration) {
if ($globalEvents->exists("BeforeRegister")) {
$retval = $globalEvents->BeforeRegister($values, $strMessage, $pageObject);
}
} else {
$retval = false;
}
if ($retval) {
$retval = DoInsertRecord("ConsolidatedStockEnquiry_users", $values, $blobfields, $pageObject);
}
if ($isUseCaptcha && $pageObject->isCaptchaOk) {
$_SESSION[$strTableName . "_count_captcha"] = $_SESSION[$strTableName . "_count_captcha"] + 1;
}
if ($retval) {
if ($globalEvents->exists("AfterSuccessfulRegistration")) {
$globalEvents->AfterSuccessfulRegistration($values, $pageObject);
}
$url = GetSiteUrl();
$url .= $_SERVER["SCRIPT_NAME"];
// send email to user
$message = "You have registered as a user at" . " " . $url . "\r\n\r\n";
$message .= "Click this link to confirm your account and finish the registration" . ":\r\n";
$message .= $url . "?a=activate&u=" . rawurlencode(base64_encode($values["username"])) . "&code=";
$message .= rawurlencode(md5($values["username"] . md5($values["password"])));
示例2: foreach
}
$failed_inline_add = false;
// add filenames to values
foreach ($afilename_values as $akey => $value) {
$avalues[$akey] = $value;
}
// before Add event
$retval = true;
if ($eventObj->exists("BeforeAdd")) {
$retval = $eventObj->BeforeAdd($avalues, $usermessage, (bool) $inlineadd, $pageObject);
}
if ($retval && $pageObject->isCaptchaOk) {
//add or set updated lat-lng values for all map fileds with 'UpdateLatLng' ticked
setUpdatedLatLng($avalues, $pageObject->cipherer->pSet);
$_SESSION[$strTableName . "_count_captcha"] = $_SESSION[$strTableName . "_count_captcha"] + 1;
if (DoInsertRecord($strOriginalTableName, $avalues, $blobfields, $id, $pageObject, $pageObject->cipherer)) {
$IsSaved = true;
// after edit event
if ($auditObj || $eventObj->exists("AfterAdd")) {
foreach ($keys as $idx => $val) {
$avalues[$idx] = $val;
}
}
if ($auditObj) {
$auditObj->LogAdd($strTableName, $avalues, $keys);
}
// Give possibility to all edit controls to clean their data
// processing parent - start
$inlineAddOption = true;
if ($inlineAddOption) {
$control_parent->afterSuccessfulSave();
示例3: substr
$msg = substr($msg, 4);
}
$pageObject->jsSettings['tableSettings'][$strTableName]['msg_passwordError'] = $msg;
$allow_registration = false;
}
}
$retval = true;
if ($allow_registration) {
if ($globalEvents->exists("BeforeRegister")) {
$retval = $globalEvents->BeforeRegister($values, $strMessage, $pageObject);
}
} else {
$retval = false;
}
if ($retval) {
$retval = DoInsertRecord("DashboardUsers", $values, $blobfields, $pageObject);
}
if ($isUseCaptcha && $pageObject->isCaptchaOk) {
$_SESSION[$strTableName . "_count_captcha"] = $_SESSION[$strTableName . "_count_captcha"] + 1;
}
if ($retval) {
if ($globalEvents->exists("AfterSuccessfulRegistration")) {
$globalEvents->AfterSuccessfulRegistration($values, $pageObject);
}
$url = GetSiteUrl();
$url .= $_SERVER["SCRIPT_NAME"];
// send email to user
$message = "You have registered as a user at" . " " . $url . "\r\n\r\n";
$strLabel = GetFieldLabel("DashboardUsers", "username");
$message .= $strLabel . ": " . $values["username"] . "\r\n";
$strLabel = GetFieldLabel("DashboardUsers", "email");