Insert each array into separate divs
<p>I just need some advise before i start this. Basically I have an array of data of books from mysql -
ID,Name,genre,ratings
they are print out in an array like this</p>

<pre><code>Array ( [book] =&gt; Array ( [0] =&gt; 1 [1] =&gt; book one [2] =&gt; horror [3] =&gt; 8.9 ) ) 
Array ( [book] =&gt; Array ( [0] =&gt; 2 [1] =&gt;book two [2] =&gt; Comedy [3] =&gt; 8.3 ) ) 
Array ( [book] =&gt; Array ( [0] =&gt; 3 [1] =&gt;book three [2] =&gt; Comedy [3] =&gt; 8.7 ) ) 
</code></pre>

<p>And so on..
How do i put each array in seperate divs?</p>

<p>PS PHP code to fetch data</p>

<pre><code>$query=mysql_query("SELECT*FROM book ");
while($row = mysql_fetch_array($query)) {
$book= Array("book" =&gt; Array($row['id'], $row['name'],$row['genre'],$row['ratings']));echo"&lt;br&gt;";
print_r( $book);
</code></pre>

<p>Thanks</p>
