[code]
$sql_query = “SELECT id,username,first_name,surname FROM users WHERE $_SESSION[‘session_type’] = ?”;
[code]
$sql_query = “SELECT id,username,first_name,surname FROM users WHERE $_GET[‘session_type’] = ?”;
[code]
$sql_query = “SELECT id,username,first_name,surname FROM users WHERE $_POST[‘session_type’] = ?”;
I forgot the other one, the third one out of the 3 ($_POST, $
Imagine, I am asking about the 3rd one here too …
[code]
$sql_query = “SELECT id,username,first_name,surname FROM users WHERE $session_type = ?”;
[code]
$sql_query = “SELECT id,username,first_name,surname FROM users WHERE ${$session_type} = ?”;