Hi,
I have a page with a map on, I want to be able to run a query when someone clicks on a country on the map that will show all users in that country. The link would be..
http://www.domain.com/map/index.php?country_code=uk
And the search would be like
$sql="SELECT * FROM table WHERE country_code='$country'";
This should return all users with the country code UK in there record(haven't tested it yet).
However, my problem is...How do I display those records in table format on my page. I need to have a table with
username | 1st name | last name | description....etc.
In some countries thre might be 1 user, in others hundreds. How do I format a page, to take this in to account?
Many thanks
/v00d00
P.S. Also after I have fingured this out, I need to be able to click on the username as a link, which will then show a more detailed page of information, just for that user. I don't know if this would affect this 1st piece of code, but I thought I should let you know. Once I get the 1st bit done, the 2nd should be too hard to figure out.