本文整理匯總了PHP中crud::dbUpdate方法的典型用法代碼示例。如果您正苦於以下問題:PHP crud::dbUpdate方法的具體用法?PHP crud::dbUpdate怎麽用?PHP crud::dbUpdate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crud
的用法示例。
在下文中一共展示了crud::dbUpdate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: sanitize
$page->titulo = "Edit User";
$page->conteudo = $janela . $la . "</div></div>";
print $page->display_page();
}
break;
case "ActionEditUser":
test_csrf();
$idedituser = sanitize(htmlentities($_POST['idedituser']));
$loginedit = sanitize(htmlentities($_POST['loginedit']));
$mailedit = sanitize(htmlentities($_POST['mailedit']));
$passedit = sanitize(htmlentities($_POST['passedit']));
$owneredit = sanitize(htmlentities($_POST['owneredit']));
$secret = $frase . $passedit;
$gen = new Bcrypt(12);
$bcrypt_hashedit = $gen->hash($secret);
$crud->dbUpdate('userronin', 'login', $loginedit, 'id', $idedituser);
$crud->dbUpdate('userronin', 'pass', $bcrypt_hashedit, 'id', $idedituser);
$crud->dbUpdate('userronin', 'mail', $mailedit, 'id', $idedituser);
$crud->dbUpdate('userronin', 'owner', $owneredit, 'id', $idedituser);
$page->titulo = "Data edit of user";
$page->conteudo = '<br><br>
<p class="message message-success message-closable">User edited OK !</p><br<br>';
print $page->display_page();
break;
case "ListarUser":
$janela .= '<div class="portlet portlet-closable x12">
<div class="portlet-header">
<h4>Users List</h4>
</div> <!-- .portlet-header -->
<div class="portlet-content">
';