本文整理汇总了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">
';