我有这段代码将session_id存储在数据库中:
$naam = $_POST['naam'];
$username = $_POST['username'];
$password = $_POST['password'];
$email = $_POST['email'];
$false = 0;
$id = session_id();
$sql = "INSERT INTO Accounts VALUES (?,?,?,?,?,?)";
if($query = mysqli_prepare($conn, $sql)){
mysqli_stmt_bind_param($query, 'ssssii', $username, $password2, $email, $naam, $false, $id);
mysqli_stmt_execute($query);
我将它存储在varchar(32)列中。但是在存储之后,它只包含前2个字符。这是为什么?