Bu kodu vardır:
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';
}
}
}
<partition<?php echo $i; ?>><?php echo $partition_os; ?></partition<?php echo $i; ?>>
Sorgunun çıktı: (olmadan where)
mysql> SELECT OS FROM machines;
+---------+
| OS |
+---------+
| NULL |
| solaris |
+---------+
My problem is that in my xml (this is for ajax) i see only /home/ instead of export/home.
The $hostname supposed to be fine because i use it before.
Teşekkür ederiz!