title: how to display a mysql table column in different div tags with php and jQuery?
body: <p>The following php page is getting the values from mysql table :
  its  getTechnoXchange.php</p>
  
  <pre><code>&lt;?php
  
  error_reporting(E_ALL);
  $host="localhost";// Host name
  $db_name="parth"; // Database name
  
  $con = mysql_connect("localhost","root","") or die('Could not connect to MySQL server: ' . mysql_error());
  
  mysql_select_db("parth") or die('Could not connect to database' . mysql_error());
  
  
  
  
  $pricequery="SELECT price FROM technoxchange;" ;
  $result=mysql_query($pricequery);
  
  while($row= mysql_fetch_array($result)){
  
  echo $row['price'];
  echo "&lt;br/&gt;";
  
  }
  ?&gt;
  </code></pre>
  
  <p>But I want that my jQuery to get that array and display in different div tags.</p>
  
  <p>My javascript in a different php file "TechnoXchange.php"  : </p>
  
  <pre><code>var p;
  $.get("getTechnoXchange.php", function(data){
          p= Array.prototype.slice.call(data);
  
  });
  
  document.getElementById('priceUnicus').innerHTML = p[0];
  document.getElementById('priceHire').innerHTML = p[1];
  document.getElementById('priceMonsterArena').innerHTML = p[2];
  </code></pre>
  
  <p>Its not getting displayed in the different div tags. Waiting for your answers!!</p>