jillellarajakumar Posted June 25, 2015 Share Posted June 25, 2015 Hi, I have written the code for users ranks based on locations. But, how to get the current logged in user location ranks. Ex : user registered with "Hyderabad" location. User should get all the ranks of all students in Hyderabad location only. Quote Link to comment https://forums.phpfreaks.com/topic/297020-get-ranks-of-current-logged-in-user/ Share on other sites More sharing options...
benanamen Posted September 25, 2015 Share Posted September 25, 2015 You have not provided the type of database you are using nor your current code. You need to help us to help you. It is basically just adding a WHERE condition to your sql. SELECT * FROM your_table WHERE location ='Hyderabad' Quote Link to comment https://forums.phpfreaks.com/topic/297020-get-ranks-of-current-logged-in-user/#findComment-1521493 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.