title: Need Help On Phonegap List View
body: <p>Hii i am doing a simple phone gap application.i want to display my data in list view in phonegap using ajax.but i am facing one problem in listview.my list view showing only one value at a time.means i want to show all titles in list view.but it showing only one title..how can i show all databse calumns value in listview.how can i loop it.pls help.</p>
  
  <pre><code>$.ajax({
          url: 'http://url/display.php',
          type: 'GET',
          dataType: "json",
          success: function(data){
  
              $('#list').append('&lt;li &gt;'+data.title+'&lt;/li&gt;');
               $("#list").listview("refresh");
              alert('Data successfully display');
  
          },
          error: function(){
              alert('There was an error');
          }
      }); 
  </code></pre>
  
  <p>#html</p>
  
  <pre><code>&lt;div data-role="content"&gt;
      &lt;div class="example-wrapper"&gt;
         &lt;ul data-role="listview"  id="list" data-divider-theme="a" data-inset="true&lt;/ul&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;   
  </code></pre>
  
  <h1>php</h1>
  
  <pre><code>&lt;?php
  include_once('config/config.php');
  
  $sql="select * from myapp";
  $result=mysql_query($sql);
  
  while($row = mysql_fetch_array($result))
  
  {
  $array = $row;
  
  }
  
  echo json_encode($array);
  
   ?&gt;
  </code></pre>