Posts

Showing posts from November, 2014

Auto complete text box with PHP, jQuery and MySql

Image
Auto complete text box with PHP, jQuery and MySql In this tutorial I want to show you how easy to do a auto complete text box with PHP, jQuery and MySql. Creating database table We need to create a table in our database before writing our script. I also add some data for this table. Import following SQL statement via phpMyAdmin or any other MySQL tool. CREATE TABLE `tag` ( `id` int ( 20 ) NOT NULL auto_increment , `name` varchar ( 50 ) NOT NULL , PRIMARY KEY ( `id` ) ) ENGINE = MyISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT = 10 ; INSERT INTO `tag` ( `id` , `name` ) VALUES ( 1 , 'php' ), ( 2 , 'php frameword' ), ( 3 , 'php tutorial' ), ( 4 , 'jquery' ), ( 5 , 'ajax' ), ( 6 , 'mysql' ), ( 7 , 'wordpress' ), ( 8 , 'wordpress theme' ), ( 9 , 'xml' ); index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w...

Select all check box using one check box In PHP

Image
Select all check box using one check box          Here we are going to create a page that contains 6 check boxes.            And 2 other checkbox which we use for selects all and deselect all.          Now open your favorite PHP text editor and type following code.          Here I am going to create a webpage that contain 6 Language. <body> <p>Pls Select languages you know;</p> <form name="form1" method="post" action="<?php $_SERVER['PHP_SELF']; ?>">   <?php   print"<pre>";   print"<input type='checkbox' name='lang[]'   value='C'>C<br>";   print"<input type='checkbox' name='lang[]'   value='c++'>C++<br>";   print"<input type='checkbox' name='lang[]' ...