Jump to content

Use value of cookee


Recommended Posts

Hi, I need to pass to a condition of a query, the value of the variable employee email. This condition is in an extended class, the class is AdminOrders (AdminOrders.php file). is within the "public function __construct ()".

 

If I write:

 

AND c.`employee` = "[email protected]" (for example)

 

everything works, the query gives me the orders of employee who has email = [email protected]

 

I wish that instead of "[email protected]" there "$ this-> email" the employee logged.

 

I tried but with "$ this->email" 0 gives orders.

 

HOW can I do?

thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...