当前位置: 首页>>代码示例>>PHP>>正文


PHP DoInsertRecord函数代码示例

本文整理汇总了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"])));
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:31,代码来源:register.php

示例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();
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:pad_pad_customer_add.php

示例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");
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:31,代码来源:register.php


注:本文中的DoInsertRecord函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。