Q:

I need jquery UI auto complete source from mysql database

I create auto complete but its source coming from javascript, now i want to get source from mysql database using php language.Below is my script, Please help me
<SCRIPT language="javascript">

$(document).ready(function() {

$("input#autocomplete").autocomplete({

source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]

});

});       

</SCRIPT>

A:

Hope this helps, this is an example i made using php and mysql, you can download it from here:
http://dl.dropbox.com/u/15208254/trickylearning/examples/autocomplete/autocomplete-php.zip
Than main idea of this example is to have something with this structure in your db:

id: 1 / tag_column: jeans, jackets, shoes
id: 2 / tag_column: kfc,  burger king, pizza hut

And the final result will split everything from db and look like this:

Regards.

