scvinodkumar Posted March 26, 2009 Share Posted March 26, 2009 hi there is list of users from different countries and in the home page i will list the latest visitors to the site. Now by question is how to display the users based on the country first. For example, if i logged in and from India, then i want to see first indian user visited to the site and then other countries users. i hope you guys understand this. sorry for my bad english, i am getting improving day by day. advance thanks for your help:) Quote Link to comment https://forums.phpfreaks.com/topic/151259-custom-order-by-country/ Share on other sites More sharing options...
monkeytooth Posted March 26, 2009 Share Posted March 26, 2009 I think what you are trying to do is going to involve geoip usage. Where you get the users region of the world by IP and then with some code play through the geoip usage you would determine origin which you would store that in a database. Unfortunately what you want isn't as easy as it sounds. How you want to store it and display it is one thing but hand in hand with geoip or something similar. Quote Link to comment https://forums.phpfreaks.com/topic/151259-custom-order-by-country/#findComment-794552 Share on other sites More sharing options...
Maq Posted March 26, 2009 Share Posted March 26, 2009 I'm not sure what you have done so far. You just need to link the IP to the country and store it in the database. There is plenty of stuff on the net. http://www.phptutorial.info/iptocountry/ Quote Link to comment https://forums.phpfreaks.com/topic/151259-custom-order-by-country/#findComment-794572 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.