MNT Posted August 3, 2011 Share Posted August 3, 2011 Hello, I tried to get the current Employee ID but still have an error. How can I get the Employee ID in 'AdminCustomers.php' I tried: intval($cookie->id_employee) and $cookie->id_employee but it doesn' work!! Can you help please? Thanks Link to comment Share on other sites More sharing options...
vivek tripathi Posted August 4, 2011 Share Posted August 4, 2011 Hi I think your are missing to declare $cookie thats why ,it doesnot return current Employee ID write following line where you want to display Current Employee ID global $cookie; echo intval($cookie->id_employee) ; Link to comment Share on other sites More sharing options...
MNT Posted August 4, 2011 Author Share Posted August 4, 2011 It works. Thank you very much for that. global $cookie; $cookie = new Cookie('psAdmin'); echo (int)$cookie->id_employee; Link to comment Share on other sites More sharing options...
Manuel Corbet Posted August 4, 2011 Share Posted August 4, 2011 Hi I think your are missing to declare $cookie thats why ,it doesnot return current Employee ID write following line where you want to display Current Employee ID global $cookie; echo intval($cookie->id_employee) ; Hi, or try self::$cookie->id_employee BR Manuel Link to comment Share on other sites More sharing options...
aereo Posted October 27, 2012 Share Posted October 27, 2012 global $cookie; echo intval($cookie->id_employee) ; perfecto! gracias por la info 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