$result = $mysqli->query(‘SELECT * FROM users WHERE username = ($_SESSION[“username”])’);
i can get to show username But it will not pull anydata
$result = $mysqli->query(‘SELECT * FROM users WHERE username = ($_SESSION[“username”])’);
i can get to show username But it will not pull anydata
The username value is a string. If you had error handling for the database query, you would be getting an error about a non-existent column with the same name as the username value. A bunch of points -