topical media & game development
professional-ajax-07-Autosuggest-Example-suggestions.php / php
<?php
//plain text header
header("Content-Type: text/plain; charset=UTF-8");
//database information
sDBName = "your_database_name";
sDBPassword = "your_database_password";
//include JSON-PHP and instantiate the object
require_once(<JSON.php>);
oData = HTTP_RAW_POST_DATA);
oData->text) > 0) {
//create the SQL query string
oData->requesting." where Name like '".
oData->limit;
//make the database connection
sDBServer,sDBPassword);
@mysql_select_db(oResult = mysql_query(aValues = mysql_fetch_array(aSuggestions, oResult);
mysql_close(oJSON->encode(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.