Skip to main content

Posts

Showing posts from February, 2017

Dynamic Drop Down _using_Ajax

(1)create  table   mystate  : create table  mysate (id  int primary key auto_increment, state  varchar(200) ); (2)create table  mycity : Create table  mycity (id  int primary key auto_incrment, city   varchar(200), state  varchar(200) ); (3)insert    some values   in mystate  & mycity .. (4)Now   write code   for   db.php    file: <?php $con=mysql_connect("localhost","root",""); mysql_select_db("ajax",$con); ?> (5)Now  write code for  drop.php  file: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Sections Demo</title> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ ajax/libs/jquery/1.4.2/jquery.min.