I have the following code:
$insert_stmt->bind_param('sssss', $username, $email, $password, $random_salt, ' . $_SESSION['pid'] . ');
I get this error message:
Parse error: syntax error, unexpected 'pid' (T_STRING) in C:\xampp\htdocs\wildfire\includes\register.inc.php on line 86
What is wrong with the pid? Or am I not able to put a session variable there?