empty value of parameter - php

vicseo

New Member
I have this code:\[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'; } }} <partition<?php echo $i; ?>><?php echo $partition_os; ?></partition<?php echo $i; ?>>\[/code\]The output of the query is:(without the \[code\]where\[/code\])\[code\]mysql> SELECT OS FROM machines;+---------+| OS |+---------+| NULL || solaris |+---------+\[/code\]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.Thank you!
 
Back
Top