the way you are passing data is wrong that may be one reason of not working. as you want to pass data as get request you should append the data in the query string like this
url: 'autocomplete.php?src='+res + '&value=' + $("#search").val(),
or if you want to pass data as json than do proper formatting of passed data as below , i.e. pass data in json formate as show below
data: {
src: res,
value: $('#search').val();
}
Also refer this example :
http://www.smarttutorials.net/jquery-autocomplete-search-using-php-mysql-and-ajax/[
^]
i hope by doing this your code will work