想要用用户组合框值选择制作数组。
<?php
include_once $_SERVER['DOCUMENT_ROOT'].'/datacentre/admin/includes/db_connect.php';
class User {
function getPermission( $email, $perms) {
if ($stmt = $mysqli->prepare("SELECT members.email , groups.permission FROM members
JOIN groups ON members.group_id = groups.group_id
WHERE email = ? LIMIT 1")) {
$stmt->bind_param('s', $email); // Bind "$email" to parameter.
$stmt->execute(); // Execute the prepared query.
$stmt->store_result();
// get variables from result.
$stmt->bind_result($user_email, $user_perms);
print "yes we can ".$user_perms;
exit();
if($perms & $user_perms)
{return true;
exit();}
return false;
exit();
}
}
?>
我想创建一个数组,使用Next_Click按钮参数逐步添加到数组。我卡住了,请帮助。 接收&#34;未处理的类型&#39; System.InvalidOperationException&#39;发生在WindowsBase.dll&#34;
中答案 0 :(得分:0)
我不明白你为什么这样做。 (奇怪的) 但问题可能是由于在将值设置为array [Step]之后未将gotResponse设置为false。