Código:
  
<?php
$auto = "SELECT descripcion FROM productos ORDER BY descripcion ASC";
$res = mysql_query($auto);
$arreglo_php = array();
if(mysql_num_rows($res)==0)
   array_push($arreglo_php, "No hay datos");
else{
  while($palabras = mysql_fetch_array($res)){
    array_push($arreglo_php, $palabras["descripcion"]);
  }
}
?>
<!doctype html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script>
  $(function(){
    var autocompletar = new Array();
     <?php 
     for($p = 0;$p < count($arreglo_php); $p++){ ?>
       autocompletar.push('<?php echo $arreglo_php[$p]; ?>');
     <?php } ?>
	 $("#producto").autocomplete({ 
       source: autocompletar
     });
  });
</script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
</head>
<body>
<input name="producto" id="producto">
</body>
</html>
Me podrian echar una manito?, por favor!
 

