sandy1028 Posted September 24, 2007 Share Posted September 24, 2007 How to pass the values in $qry2[0] to $graph[]. The contents of $graph=array(Contents of $qry2[0]); Please help me how to proceed with this $qry= "select avg(bw_util) from tablename where fieldname < ('".$timestamp."') and fieldname > date_sub('".$timestamp."',interval 1 day) group by fieldname"; $qry1=mysql_query($qry); $count=mysql_num_rows($qry1); $graphValues=array(); while($qry2=mysql_fetch_array($qry1)){ //Some code Link to comment https://forums.phpfreaks.com/topic/70424-contents-to-array/ Share on other sites More sharing options...
sandy1028 Posted September 24, 2007 Author Share Posted September 24, 2007 please help me with this problem Link to comment https://forums.phpfreaks.com/topic/70424-contents-to-array/#findComment-353819 Share on other sites More sharing options...
sasa Posted September 24, 2007 Share Posted September 24, 2007 while($qry2=mysql_fetch_array($qry1)) $graphValues[] = $qry2[0]; Link to comment https://forums.phpfreaks.com/topic/70424-contents-to-array/#findComment-353854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.