I am looking for how to make when the user enters the Id
is collected, to later use to show only their information and do mathematical-logical processes.
First I tried to capture the SESSION
of the Id
with a variable like this: $Id = $_SESSION['Id']
. For then in the clause WHERE
can make the condition like this: WHERE registros.Id = "$Id";
And I get the following:
Parse error: syntax error, unexpected '$ Id' (T_VARIABLE), expecting ',' or ')' in C: \ xampp \ htdocs \ TDE \ Pages \ Admins \ Sale_Shop.php on line 63
The important thing is, how can I use that $_SESSION['Id']
when I want?