2010-04-30 32 views
1

得到自动提示我输入了我的代码在我的控制器像下面如何在CakePHP中

function keyup(){ 
    $this->Note->simple(); 
    if(strlen($searchq)>0){ 
     while ($row = mysql_fetch_array($getRecord)) { 
      <a href="#"> echo $row['name']; <small> echo $row['department'];</small></a> 
     } 
     return $row; 
    } 
} 

只要我进入这一个,它不会显示任何信息。

我需要哪些更正?

+0

可能重复... http://stackoverflow.com/questions/220211/what-is-the-best-library-to-create-an-ajax-auto-suggest-textbox-in-a-web-形成 – 2010-04-30 08:57:28

回答