Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want the user to enter their full address including a dropdown list of countries and cities that are updated based on the country selected.
Do I really have to manual create a country database table as well as all possible cities table and then make a giant php check to match the two?
I am sure there is a smarter way of doing it, but I could not seem to find one!
Later I will be using the country and city to filter the results that are displayed on the page.
Any help is much appreciated!
search search search
goto http://www.geonames.org you can find complete list of cities in the world
In particular, you can search over the dump list.
Sql dump of all the Countries, Country Codes, Phone codes
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a company database (PHP and MYSql) where products needs to be exported and imported regularly. Due to the difference in column between companies, i need to export into their column format and except their format. I am after a script that will map the columns before exporting/importing. Open source would be the preferred choice. I searched the internet all day without any joy.
Thanks
(sorry I do not have 50 reputation to comment)
You should take a look here
https://dev.mysql.com/doc/refman/5.0/en/replication-howto.html
And then here
replication between two tables with different names and which have different column names. Is it possible to create such replication
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to create random sentences. I can't create any lists or populate anything myself. I will end up asking questions that analyze the sentence's words.
I don't understand how to use PHP to arrange verbs and nouns to create complete sentences.
I'm not asking for an external reference, just how to use PHP to generate random sentences.
Is it possible to grab a sentence of a web page and test to see if it is grammatically correct?
Thanks!
On this site you will get your wordlists. If you separately load them into your database, you can save the part of speech too.
Simple english grammar helps you building the sentence ;)
Oh, I'm sorry. Did not read that you want meaningful sentences.
You can use the tips above to check the grammar of the sentences too ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a database that has a "users" table where i have a last_login_ip field for each user that stores the IP address of the device where they last visited my website. I'd like to know country, city and state of all my visitors. I've been investigating IP addresses theory but i can't find a way to get this information aside of websites that already have this service, the problem with these websites is that i have to insert each IP address individually and i can't do that to 4000+ users. What would be the best way to do this?
There are a lot of APIs to do that. Like for example this one very simple :
http://www.hostip.info/use.html
An example of code in php using this API would be
<?php
$ip = "replace_with_your_ip";
// Get country
$data = file_get_contents("http://api.hostip.info/country.php?ip=".$ip);
//Get other location infos
$data = file_get_contents("http://api.hostip.info/?ip=".$ip);
?>
It can be more convenient in some case to use Javascript and make Ajax calls on these URLs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I know that there are lists of country names in various languages available separately, but I would like to have a list of countries where each country is named how the inhabitants of the country call it. I mean the list like:
United States of America
Россия
Deutschland
I think it would be convenient for website visitors to choose the country name which they know well and also I won't have to store a separate country list for each language on the server - I can always display just this common list.
Is there such a list available on the Internet? Or maybe I can get it out of PHP somehow?
Take a look at the wikipedia article
list of countries and capitals in native languages.
also
list of country names in various languages.
http://www.omniglot.com/countries/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I would like to create a dynamically populated javascript slide show for an e-commerce site, where I have a product list with several categories.
I would like to be able to create slide shows with roughly 5 linked images displaying at one time, starting with newest products. I'd like to be able to take them all from the same list and put them in different slide shows, so for images from category 1 they are in category 1 slide show, same for cat 2,3, etc...
Is there a tutorial or series of tutorials that could teach me this that someone would personally recommend (there is plenty on dynamically populated javascript and plenty on slide shows, but nothing that links the two in a way I can understand).
If there isn't would someone be willing to share a sample code or something for it, if I can see the code I can figure it out for myself, but if you are willing to explain in detail then that would be even better.
Thanks!
I'm not sure if this is exactly what you are looking for, but you can try this tutorial: http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-jquery/