#### Roshan's Ajax dropdown code with php #### Copyright reserved to Roshan Bhattarai - nepaliboy007@yahoo.com #### if you have any problem contact me at http://roshanbh.com.np #### fell free to visit my blog http://php-ajax-guru.blogspot.com ?> $countryId=intval($_GET['country']); $cityId=intval($_GET['city']); $link = mysql_connect('localhost', 'root', 'meladkoo'); //changet the configuration in required if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('edrac'); $query="SELECT id,district FROM district WHERE countryid='$countryId' AND cityid='$cityId'"; $result=mysql_query($query); ?>
Other |