更新时间:2022-03-15 03:29:22
这里有两种可能性:
session_start();
启动会话.使用以下代码:
session_start();
at the begining of page.use the following code:
$accessquery = mysqli_query($conn, "SELECT roleid FROM person WHERE email = '". $email ."'", mysqli_store_result($conn));
$access = mysqli_fetch_row($accessquery);
$_SESSION['Access'] = $access[0];