{"id":903,"date":"2009-11-20T21:15:30","date_gmt":"2009-11-20T14:15:30","guid":{"rendered":"https:\/\/engineerball.com\/?p=903"},"modified":"2009-11-20T21:15:30","modified_gmt":"2009-11-20T14:15:30","slug":"live-search-phpajaxmysql","status":"publish","type":"post","link":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html","title":{"rendered":"Basic Live search : PHP+AJAX+MySQL"},"content":{"rendered":"<p>\u0e2d\u0e2d\u0e01\u0e15\u0e31\u0e27\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e25\u0e22\u0e27\u0e48\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e42\u0e17\u0e29\u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e1e\u0e2d\u0e14\u0e35\u0e02\u0e35\u0e49\u0e40\u0e01\u0e35\u0e22\u0e08\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22\u0e40\u0e25\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e20\u0e32\u0e29\u0e32\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29 \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e25\u0e2d\u0e07\u0e19\u0e31\u0e48\u0e07\u0e40\u0e25\u0e48\u0e19 \u0e19\u0e31\u0e48\u0e07\u0e17\u0e33\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e01\u0e47\u0e40\u0e25\u0e22\u0e21\u0e32\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e01\u0e31\u0e19\u0e25\u0e37\u0e21\u0e0b\u0e30\u0e2b\u0e19\u0e48\u0e2d\u0e22<\/p>\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e01\u0e32\u0e23 search \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e08\u0e32\u0e01 MySQL \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 AJAX \u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e04\u0e23\u0e31\u0e1a \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e01\u0e47\u0e44\u0e21\u0e48\u0e04\u0e48\u0e2d\u0e22\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e21\u0e32\u0e01 \u0e1c\u0e21\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Database \u0e40\u0e25\u0e22\u0e01\u0e47\u0e41\u0e25\u0e49\u0e27\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>1. \u0e2a\u0e23\u0e49\u0e32\u0e07 Database \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 directory \u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07 table \u0e08\u0e32\u0e01 script \u0e02\u0e49\u0e32\u0e07\u0e25\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre lang=\"sql\">CREATE TABLE `Directory`.`member` (\n`id` TINYINT( 2 ) NOT NULL AUTO_INCREMENT ,\n`prefix` VARCHAR( 50 ) NOT NULL ,\n`firstname` VARCHAR( 50 ) NOT NULL ,\n`lastname` VARCHAR( 50 ) NOT NULL ,\n`nickname` VARCHAR( 50 ) NOT NULL ,\n`email` VARCHAR( 50 ) NOT NULL ,\n`mobile` VARCHAR( 20 ) NOT NULL ,\n`address` TEXT NOT NULL ,\nPRIMARY KEY ( `email` ) ,\nINDEX ( `id` )\n) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;<\/pre>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e44\u0e14\u0e49 Database \u0e41\u0e25\u0e49\u0e27 \u0e21\u0e32\u0e43\u0e2a\u0e48\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e25\u0e47\u0e01\u0e46 \u0e19\u0e49\u0e2d\u0e22\u0e46 \u0e25\u0e07 Database \u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre lang=\"sql\">INSERT INTO `member` (`prefix`, `firstname`, `lastname`, `nickname`, `email`, `mobile`, `address`) VALUES\n('Mr.', 'John', 'Doe', 'John', 'john@email.com', '111-111111', 'on the road'),\n('Miss', 'Jane', 'Doe', 'Jane', 'jane@email.com', '222-22222', 'same with John'),\n('Mr', 'David', 'Beckham', 'David', 'david@email.com', '333-333', 'LA');<\/pre>\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e44\u0e27\u0e49\u0e43\u0e0a\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e44\u0e1f\u0e25\u0e4c HTML \u0e07\u0e48\u0e32\u0e22\u0e46 \u0e04\u0e23\u0e31\u0e1a \u0e15\u0e32\u0e21 code \u0e02\u0e49\u0e32\u0e07\u0e25\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49 \u0e0a\u0e37\u0e48\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e04\u0e37\u0e2d livesearch.html<\/p>\n<pre lang=\"html\">&lt;html&gt;\n    &lt;head&gt;\n    &lt;script src=\"livesearch.js\"&gt;&lt;\/script&gt;\n    &lt;title&gt;Search&lt;\/title&gt;\n    &lt;meta http-equiv=Content-Type content=\"text\/html; charset=tis-620\"&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n\t&lt;form&gt;\n\t    Search: &lt;input type=\"text\" name=\"search\" id=\"search\" onkeyup=\"searchUser(this.value)\"&gt;\n\t&lt;\/form&gt;\n\t&lt;div id=\"searchresult\" name=\"searchresult\"&gt; Search results ...&lt;\/div&gt;\n    &lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e01\u0e32\u0e23\u0e01\u0e14\u0e04\u0e35\u0e22\u0e4c\u0e43\u0e14\u0e46 \u0e01\u0e47\u0e15\u0e32\u0e21\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07 input \u0e04\u0e48\u0e32\u0e08\u0e30\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e44\u0e1f\u0e25\u0e4c livesearch.js \u0e17\u0e35\u0e48\u0e44\u0e27\u0e49\u0e43\u0e0a\u0e49\u0e40\u0e01\u0e47\u0e1a Javascript \u0e04\u0e23\u0e31\u0e1a \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e35\u0e49\u0e01\u0e47\u0e08\u0e30\u0e2a\u0e48\u0e07 url \u0e41\u0e25\u0e30 string \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21 \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e44\u0e1f\u0e25\u0e4c PHP \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22 \u0e0a\u0e37\u0e48\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d livesearch.js<\/p>\n<pre lang=\"js>\nvar xmlHttp\nfunction searchUser(str){\n    xmlHttp=GetXmlHttpObject()\n    if (xmlHttp==null) {\n        alert (&quot;Browser does not support HTTP Request&quot;)\n        return\n    }\n    var url=&quot;searchresult.php&quot;\n    url=url+&quot;?q=&quot;+str\n    url=url+&quot;&amp;sid=&quot;+Math.random()\n    xmlHttp.onreadystatechange=stateChanged\n    xmlHttp.open(&quot;GET&quot;,url,true)\n    xmlHttp.send(null)\n}\nfunction stateChanged(){\n    if (xmlHttp.readyState==4 || xmlHttp.readyState==&quot;complete&quot;){\n        document.getElementById(&quot;searchresult&quot;).innerHTML=xmlHttp.responseText\n    }\n}\nfunction GetXmlHttpObject(){\n    var xmlHttp=null;\n    try{\n        \/\/ Firefox, Opera 8.0+, Safari\n        xmlHttp=new XMLHttpRequest();\n    } catch (e){\n\t    \/\/Internet Explorer\n\t    try{\n        xmlHttp=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);\n\t    } catch (e){\n\t        xmlHttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);\n\t    }\n    }\n    return xmlHttp;\n}<\/pre>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e04\u0e48\u0e32\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e21\u0e32\u0e08\u0e32\u0e01\u0e44\u0e1f\u0e25\u0e4c javascript \u0e44\u0e1f\u0e25\u0e4c PHP \u0e19\u0e35\u0e49\u0e01\u0e47\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32\u0e41\u0e25\u0e49\u0e27\u0e19\u0e33 string \u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e21\u0e32\u0e44\u0e1b\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e43\u0e19 database \u0e04\u0e23\u0e31\u0e1a \u0e0a\u0e37\u0e48\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d searchresult.php<\/p>\n<pre lang=\">&lt;?php\n$q=$_GET[\"q\"];\nerror_reporting(E_ALL);\nfunction openDB ($host, $user, $pass){\n    try {\n        if ($db = mysql_connect ($host, $user, $pass)){\n        return $db;\n    } else {\n        throw new exception (\"Sorry, could not connect to mysql\");\n        }\n    } catch (exception $e) {\n        echo $e-&gt;getmessage();\n    }\n}\nfunction selectDB ($whichdb, $db){\n    try {\n        if (!mysql_select_db($whichdb,$db)){\n            throw new exception (\"Sorry, could not be opened\");\n        }\n    } catch (excetion $e){\n            echo $e-&gt;getmessage();\n    }\t\n}\nfunction closeDB ($db){\n    mysql_close($db);\n}\n$db = openDB(\"localhost\",\"root\",\"password\");\nselectDB(\"Directory\", $db);\nif ($query = mysql_query(\"SELECT * FROM member WHERE firstname LIKE '%$q%' OR lastname LIKE '%$q%' OR nickname LIKE '%$q%'\")){\n    while ($data = mysql_fetch_array($query)){\n        echo \"Firstname: \" . $data['firstname'] . \"&lt;br \/&gt;\";\n        echo \"Lastname: \" . $data['lastname'] . \"&lt;br \/&gt;\";\n        echo \"Nickname: \" . $data['nickname'] . \"&lt;br \/&gt;\";\t\t\t\n        echo \"E-mail: \" . $data['email'] . \"&lt;br \/&gt;\";\n        echo \"Mobile: \" . $data['mobile'] . \"&lt;br \/&gt;\";\n        echo \"Address: \" . $data['address'] . \"&lt;br \/&gt;\";\n        echo \"---------------------------------&lt;br \/&gt;\";\n    }\n} else {\n    echo mysql_error();\n}\ncloseDB($db);\n?&gt;<\/pre>\n<p>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e17\u0e33\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c livesearch.html \u0e41\u0e25\u0e49\u0e27\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e43\u0e14\u0e46 \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b \u0e01\u0e47\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e17\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e01\u0e34\u0e14\u0e02\u0e36\u0e49\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e2d\u0e2d\u0e01\u0e15\u0e31\u0e27\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e25\u0e22\u0e27\u0e48\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e42\u0e17\u0e29\u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e1e\u0e2d\u0e14\u0e35\u0e02\u0e35\u0e49\u0e40\u0e01\u0e35\u0e22\u0e08\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22\u0e40\u0e25\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e20\u0e32\u0e29\u0e32\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29 \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e25\u0e2d\u0e07\u0e19\u0e31\u0e48\u0e07\u0e40\u0e25\u0e48\u0e19 \u0e19\u0e31\u0e48\u0e07\u0e17\u0e33\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e01\u0e47\u0e40\u0e25\u0e22\u0e21\u0e32\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e01\u0e31\u0e19\u0e25\u0e37\u0e21\u0e0b\u0e30\u0e2b\u0e19\u0e48\u0e2d\u0e22 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e01\u0e32\u0e23 search \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e08\u0e32\u0e01 MySQL \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 AJAX \u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e04\u0e23\u0e31\u0e1a \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e01\u0e47\u0e44\u0e21\u0e48\u0e04\u0e48\u0e2d\u0e22\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e21\u0e32\u0e01 \u0e1c\u0e21\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Database&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html\">Read the post<span class=\"screen-reader-text\">Basic Live search : PHP+AJAX+MySQL<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2,19,21,22,9,11],"tags":[30,118,145,370,164,181],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Basic Live search : PHP+AJAX+MySQL - EngineerBALL<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic Live search : PHP+AJAX+MySQL - EngineerBALL\" \/>\n<meta property=\"og:description\" content=\"\u0e2d\u0e2d\u0e01\u0e15\u0e31\u0e27\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e25\u0e22\u0e27\u0e48\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e42\u0e17\u0e29\u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e1e\u0e2d\u0e14\u0e35\u0e02\u0e35\u0e49\u0e40\u0e01\u0e35\u0e22\u0e08\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22\u0e40\u0e25\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e20\u0e32\u0e29\u0e32\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29 \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e25\u0e2d\u0e07\u0e19\u0e31\u0e48\u0e07\u0e40\u0e25\u0e48\u0e19 \u0e19\u0e31\u0e48\u0e07\u0e17\u0e33\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e01\u0e47\u0e40\u0e25\u0e22\u0e21\u0e32\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e01\u0e31\u0e19\u0e25\u0e37\u0e21\u0e0b\u0e30\u0e2b\u0e19\u0e48\u0e2d\u0e22 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e01\u0e32\u0e23 search \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e08\u0e32\u0e01 MySQL \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 AJAX \u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e04\u0e23\u0e31\u0e1a \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e01\u0e47\u0e44\u0e21\u0e48\u0e04\u0e48\u0e2d\u0e22\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e21\u0e32\u0e01 \u0e1c\u0e21\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Database&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html\" \/>\n<meta property=\"og:site_name\" content=\"EngineerBALL\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineerball\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn\" \/>\n<meta property=\"article:published_time\" content=\"2009-11-20T14:15:30+00:00\" \/>\n<meta name=\"author\" content=\"ball\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@engineerball\" \/>\n<meta name=\"twitter:site\" content=\"@engineerball\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ball\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html\",\"url\":\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html\",\"name\":\"Basic Live search : PHP+AJAX+MySQL - EngineerBALL\",\"isPartOf\":{\"@id\":\"https:\/\/engineerball.com\/blog\/#website\"},\"datePublished\":\"2009-11-20T14:15:30+00:00\",\"dateModified\":\"2009-11-20T14:15:30+00:00\",\"author\":{\"@id\":\"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e\"},\"breadcrumb\":{\"@id\":\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/engineerball.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic Live search : PHP+AJAX+MySQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/engineerball.com\/blog\/#website\",\"url\":\"https:\/\/engineerball.com\/blog\/\",\"name\":\"EngineerBALL\",\"description\":\"Damn Those Sweet Memories\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/engineerball.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e\",\"name\":\"ball\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/engineerball.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g\",\"caption\":\"ball\"},\"description\":\"Teerapat Khunpech Live, Tech, Beers, Bike, Cafe Racer, Docker, Devops, Eco-System\",\"sameAs\":[\"https:\/\/engineerball.com\",\"https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn\",\"https:\/\/twitter.com\/engineerball\"],\"url\":\"https:\/\/engineerball.com\/blog\/author\/ball\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Basic Live search : PHP+AJAX+MySQL - EngineerBALL","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html","og_locale":"en_US","og_type":"article","og_title":"Basic Live search : PHP+AJAX+MySQL - EngineerBALL","og_description":"\u0e2d\u0e2d\u0e01\u0e15\u0e31\u0e27\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e25\u0e22\u0e27\u0e48\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e42\u0e17\u0e29\u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e1e\u0e2d\u0e14\u0e35\u0e02\u0e35\u0e49\u0e40\u0e01\u0e35\u0e22\u0e08\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22\u0e40\u0e25\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e35\u0e22\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e20\u0e32\u0e29\u0e32\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29 \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e25\u0e2d\u0e07\u0e19\u0e31\u0e48\u0e07\u0e40\u0e25\u0e48\u0e19 \u0e19\u0e31\u0e48\u0e07\u0e17\u0e33\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e01\u0e47\u0e40\u0e25\u0e22\u0e21\u0e32\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e01\u0e31\u0e19\u0e25\u0e37\u0e21\u0e0b\u0e30\u0e2b\u0e19\u0e48\u0e2d\u0e22 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e01\u0e32\u0e23 search \u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e08\u0e32\u0e01 MySQL \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 AJAX \u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e04\u0e23\u0e31\u0e1a \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e01\u0e47\u0e44\u0e21\u0e48\u0e04\u0e48\u0e2d\u0e22\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e21\u0e32\u0e01 \u0e1c\u0e21\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Database&#8230;","og_url":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html","og_site_name":"EngineerBALL","article_publisher":"https:\/\/www.facebook.com\/engineerball","article_author":"https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn","article_published_time":"2009-11-20T14:15:30+00:00","author":"ball","twitter_card":"summary_large_image","twitter_creator":"@engineerball","twitter_site":"@engineerball","twitter_misc":{"Written by":"ball","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html","url":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html","name":"Basic Live search : PHP+AJAX+MySQL - EngineerBALL","isPartOf":{"@id":"https:\/\/engineerball.com\/blog\/#website"},"datePublished":"2009-11-20T14:15:30+00:00","dateModified":"2009-11-20T14:15:30+00:00","author":{"@id":"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e"},"breadcrumb":{"@id":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/engineerball.com\/blog\/2009\/11\/20\/live-search-phpajaxmysql.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/engineerball.com\/blog"},{"@type":"ListItem","position":2,"name":"Basic Live search : PHP+AJAX+MySQL"}]},{"@type":"WebSite","@id":"https:\/\/engineerball.com\/blog\/#website","url":"https:\/\/engineerball.com\/blog\/","name":"EngineerBALL","description":"Damn Those Sweet Memories","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/engineerball.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e","name":"ball","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/engineerball.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g","caption":"ball"},"description":"Teerapat Khunpech Live, Tech, Beers, Bike, Cafe Racer, Docker, Devops, Eco-System","sameAs":["https:\/\/engineerball.com","https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn","https:\/\/twitter.com\/engineerball"],"url":"https:\/\/engineerball.com\/blog\/author\/ball"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3Nmbl-ez","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts\/903"}],"collection":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/comments?post=903"}],"version-history":[{"count":0,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts\/903\/revisions"}],"wp:attachment":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/media?parent=903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/categories?post=903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/tags?post=903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}