qualcuno mi può aiutare perpiacere ?


il codice della funzione nella classe.php è questo :
codice:
	function add_user2($uname, $passwd, $team, $status, $codice_cliente, $nome, $cognome, $ragione_sociale, $partita_iva, $codice_fiscale, $indirizzo, $citta, $cap, $pr, $email, $telefono, $cellulare, $fax, $tipologia_cliente, $promozioni_modo, $newsletter, $conferma_pass, $trattamento_dati, $mess_reg) {
		$qUserExists = "SELECT * FROM authuser WHERE uname='$uname'";
		$qInsertUser = "INSERT INTO authuser(uname, passwd, team, status, codice_cliente, nome, cognome, ragione_sociale, partita_iva, codice_fiscale, indirizzo, citta, cap, pr, email, telefono, cellulare, fax, tipologia_cliente, promozioni_modo, newsletter, conferma_pass, trattamento_dati, mess_reg, logincount) 
									VALUES ('$uname', MD5('$passwd'), '$team', '$status', '$codice_cliente', '$nome', '$cognome', '$ragione_sociale', '$partita_iva', '$codice_fiscale', '$indirizzo', '$citta', '$cap', '$pr', '$email', '$telefono', '$cellulare', '$fax', '$tipologia_cliente', '$promozioni_modo', '$newsletter', '$conferma_pass', '$trattamento_dati', '$mess_reg', 0)";
											
		$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);
					
					// Check if all fields are filled up
		if (trim($uname) == "") { 
			return "blank username";
		}
		// password check added 09-19-2003
		elseif (trim($passwd) == "") {
			return "password vuota";
		}
		
		// Check if user exists
		$SelectedDB = mysql_select_db($this->DBNAME);
		$user_exists = mysql_query($qUserExists); 

		if (mysql_num_rows($user_exists) > 0) {
			$mess_reg = "La user-id da te scelta esiste già !!!";  //<-------------QUESTA E' LA VARIABILE CHE VORREI PASSARE ALLA PAGINA REGISTRAZIONE2.php 
		}
		else {
			// Add user to DB			
			// OLD CODE - DO NOT REMOVE
			// $result = mysql_db_query($this->DBNAME, $qInsertUser);
	
			// REVISED CODE
			$SelectedDB = mysql_select_db($this->DBNAME);
			$result = mysql_query($qInsertUser); 

			return mysql_affected_rows();
		}
	}