Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 用于搜索的移动JQuery自动完成href链接_Php_Jquery Mobile - Fatal编程技术网

Php 用于搜索的移动JQuery自动完成href链接

Php 用于搜索的移动JQuery自动完成href链接,php,jquery-mobile,Php,Jquery Mobile,我有移动jquery搜索,我的问题是href链接搜索输入框没有搜索值。只有带有href的listbox,我想在mysql中使用$POST中的$值进行搜索 我的php代码 <!DOCTYPE html> <?php include_once('database.php'); $db = new database($con); $db->dbconnect(); $array_names = $db->populate_li();

我有移动jquery搜索,我的问题是href链接搜索输入框没有搜索值。只有带有href的listbox,我想在mysql中使用$POST中的$值进行搜索

我的php代码

 <!DOCTYPE html>
 <?php 
   include_once('database.php');
   $db = new database($con);
   $db->dbconnect(); 
   $array_names = $db->populate_li();

  ?>


<div data-role="page" id="filterMe">
  <div data-role="content">
     <ul data-role="listview" data-filter="true">
      <?php
      foreach($array_names as $value) {
          echo "<li class='ui-screen-hidden'>"."<a href='#'>".$value ."</a></li>" .  "</br>"; }?>
    </ul>

    </div> <a href="#" data-role="button" class="val">Retrieve values</a>

   <p class="values"></p>
</div>