domenico2010 Posted October 23, 2011 Share Posted October 23, 2011 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 More sharing options...
phrasespot Posted October 25, 2011 Share Posted October 25, 2011 Have a look at the Employee class. you will need the employee id, then create an instance of the class using the id as the sole argument. Then you can access it as $employee->email, assuming you named the variable which refers to employee instance $employee. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now