salve, questo è il mio codice:
codice:
function aggiungi()
{
	$a=trim($_GET['codiceagg']);
	if(isset($_GET['qmercec']))
	{
		$n=trim($_GET['qmercec']);
		}
		else
		{
			$n=1;
			}
	
	$utente=$_SESSION['utente'];
        $query=$mysql_query("INSERT INTO carrello (idutente,idprodotto,quantita) VALUES ('$utente','$a','$n')");
	}
però mi esce
Fatal error: Function name must be a string in carrello.php on line 26

la linea 26 è quella della $query=mysql_....

non capisco cosa possa essere