Jump to content

Recommended Posts

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:)

Link to comment
https://forums.phpfreaks.com/topic/151259-custom-order-by-country/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.