Hello everyone, I have a table with the field names "ID" and "name"
In this table there are 2 records:
record1: name = "Mike"
record2: name = "Donald"
In the event "before display" I write the code below:
$_SESSION['name'] = "Mike";
Next I add the session variable to a table, see the code below:
SELECT
ID,
name,
postcode
FROM mytable WHERE name = "$_SESSION['name']}"
But the record ( with the name "Mike" ) is not visible, what am I doing wrong?