Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37692

Re: sql query group by name and average

$
0
0
by Mike Glazebrook.  

Ok I have some updated code here. This is the warning that I am now getting:

Warning: mysql_query() expects parameter 1 to be string, array given in /homepages/14/d271388824/htdocs/moodle/moodle/mod/page/getdatasymptoms_line.php on line 22

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in /homepages/14/d271388824/htdocs/moodle/moodle/mod/page/getdatasymptoms_line.php on line 38
{"cols":[{"First Name":"firstname","type":"string"},{"Symptom Level":"rank","type":"number"}],"rows":[]}

I don't think that the DB API accepts mysql_query and mysql_fetch_assoc which look as though they are depreciated anyway. Can you help me with an alternative to using that method? 


Viewing all articles
Browse latest Browse all 37692

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>