empty value of parameter - php
<p>I have this code:</p>

<pre><code>foreach($summary as $machine)
{
    $hostname = $machine['node'];

    $result = mysql_query("SELECT OS FROM machines WHERE ind='$hostname'");
   while($row = mysql_fetch_array($result))

    {

        if($row == 'solaris')
        {
            $partition_os = 'export/home';
        }
        else
        {
             $partition_os = '/home';
        }
    }
}
  &lt;partition&lt;?php echo $i; ?&gt;&gt;&lt;?php echo $partition_os; ?&gt;&lt;/partition&lt;?php echo $i; ?&gt;&gt;
</code></pre>

<p>The output of the query is:(without the <code>where</code>)</p>

<pre><code>mysql&gt; SELECT OS FROM machines;
+---------+
| OS      |
+---------+
| NULL    |
| solaris |
+---------+
</code></pre>

<p>My problem is that in my xml (this is for ajax) i see only <code>/home/</code> instead of <code>export/home</code>.
The <code>$hostname</code> supposed to be fine because i use it before.</p>

<p>Thank you!</p>
