So, I just want to get data from a table with username, that is the same as the logged in username. Something like this, but this is not working.
$result_events = "SELECT * FROM task WHERE $_SESSION['username'] = $username;";
Error:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /storage/ssd1/202/9375202/public_html/calendario.php on line 9