hi help me i'm a newbie
i want to pass arrays i retrieve from a table to a php image file, where it creates a line graph.
iData1[] contains arrays of available harddisk space
strData[] contains dates of when the data was collected.
in my trends.php3:
$db_name = "healthcheck";
$db= mysql_connect("localhost", "root");
mysql_select_db($db_name, $db);
$str1 = "select blocks, used, avail,";
$str1 .= "capacity, refs from hdisk ";
$str1 .= "where dev like \"%0a\" order by refs desc";
$result = mysql_query($str1, $db);
print ("<h3> Harddisk</h3><br>");
//get each row
for ($r=0; $row = mysql_fetch_row($result); $r++)
{
$iData1[$r] = $row[2];
$strData1[$r] = $row[4];
}
mysql_close($db);
print("<img src=\"trendinghealth1.php3?iData=$iData1&strData=$strData1\" border=0>");
the image is not there. perhaps is there something wrong with the variables that i passed?
please help.