database connection problem
<p>i am just a beginner and simply trying to read data from a db.there are 2 files, one is include file which contains db connection code and another the 2nd part of my given below code.In db, 3 columns there: 1.id, 2.name and 3. description when i try to open the located folder in firefox it shows </p>

<blockquote>
  <p>"Fatal error: Call to undefined
  function mysql_fetch_arrey() in
  C:\xampp\htdocs\www\database
  connection\index.php on line 8"</p>
</blockquote>

<p>the 8 num line is </p>

<blockquote>
  <p>"while($person =
  mysql_fetch_arrey($result))"</p>
</blockquote>

<p>i am checked the "mysql_fetch_arrey($result)" with "$mysql_fetch_arrey($result)"</p>

<p>but it shows </p>

<blockquote>
  <p>"Fatal error: Function name must be a
  string in C:\xampp\htdocs\www\database
  connection\index.php on line 8"</p>
</blockquote>

<p>i use adobe dreamwaver5 and xampp server</p>

<p>1st page :</p>

<pre><code>   &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;title&gt;connection&lt;/title&gt;
    &lt;/head&gt;

    &lt;body&gt;

    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;/head&gt;

    &lt;body&gt;
    &lt;?php

    $dbhost = 'localhost';
    $dbuser = 'root';
    $dbpass = '';
    $db = 'db_connection';

    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
    mysql_select_db($db);

    ?&gt;



&lt;/body&gt;
&lt;/html&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>2nd page :</p>

<pre><code>&lt;?php

include 'connection.php';

$query = "SELECT * FROM people";
$result = mysql_query($query);

while($person = $mysql_fetch_arrey($result))
    {
        echo "&lt;h3&gt;".$person['name']."&lt;/h3&gt;";
        echo "&lt;p&gt;".$person['description']."&lt;/p&gt;";
    }

?&gt;
</code></pre>
