I have a problem with the mysql_query() function...
Consider the following code:
<?php
$db = mysql_connect("host", "user", "pass");
$connect = mysql_select_db("webdemo",$db);
$query = "SELECT COUNT(*) AS myCount, userType FROM survey GROUP BY...