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?