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 Quote 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 Quote 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]; Quote Link to comment https://forums.phpfreaks.com/topic/70424-contents-to-array/#findComment-353854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.