L'ultima interrogazione l'ho fatta andare, pero la prima mida problemi e mi da questo errore:

Warning: mysql_fetch_array() expects parameter 1 to be resource, string given in C:\xampp\htdocs\file33.php on line 24
Errore nella query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT(*) FROM alunno WHERE InserimentoClasse='Difficoltoso' SELECT COUNT' at line 2
codice è questo :
<html>
<head><title>Recupero dati da una tabella di database</title></head>
<body>
<h1>Docente</h1>
<?php
$db_host = "localhost"; // il server che si trova sulla macchina locale
$db_user = "root";
$db_password = "";
$db_name = "istruzione";
$db = mysql_connect($db_host, $db_user, $db_password);

if ($db == FALSE)
die("Errore nella connessione a MySql: " . mysql_error()); // verifica il buon esito della connessione e stampa l'eventuale errore
mysql_select_db($db_name, $db)

or die ("Errore nella selezione del database. Verificare i parametri");
$query = ("
SELECT COUNT(*) FROM alunno
SELECT COUNT(*) FROM alunno WHERE InserimentoClasse='Difficoltoso'
SELECT COUNT(*) FROM alunno WHERE InserimentoClasse='Problematico'
SELECT COUNT(*) FROM alunno WHERE InserimentoClasse='SenzaProblemi' ");

$totale=mysql_fetch_array("SELECT InserimentoClasse,COUNT(*) AS Numero FROM alunno GROUP BY InserimentoClasse ");

$ris = mysql_query($query,$db) or die("Errore nella query: " . mysql_error());
while($riga = mysql_fetch_array($ris)) //elabora il risultato
{$InserimentoClasse=$riga["InserimentoClasse"];
$InserimentoClasse=$totale["InserimentoClasse"];
echo "$InserimentoClasse
";

}
?>
</body>
<html>
cosa devo fare aiuto plz è urgente =(