Ciao,

come vedete dall'errore di seguito sul mio spazio di hosting ho un limite sul max_user_connections impostato a 10:

codice:
Warning: mysql_connect() [function.mysql-connect]: User 'magnacciomanage' has 
exceeded the 'max_user_connections' resource (current value: 10) in /var/www/virtual
/magnacciomanager.it/htdocs/online/db_connect.php on line 11 MySQLi error: 1226 User 
'magnacciomanage' has exceeded the 'max_user_connections' resource (current value: 10) 
Query:
Siccome sul mio spazio hosting posso creare 5 utenti avevo pensato di modificare lo script di connessione al db nel seguente modo:

Codice PHP:
function my_mysql_connect($host,$db_user,$db_passwd)
{
  try {
    
$conn mysql_connect($host,$db_user,$db_passwd);
  } catch (
Exception $e) {
    
$conn = -1;
  }
  
  return 
$conn;
}

//connessione al database ******************************************************************************
//gestione multiutenza sul db:
$conn=my_mysql_connect($host,$user_A,$db_passwd) or $conn=my_mysql_connect($host,$duser_B,$db_passwd) or $conn=my_mysql_connect($host,$user_C,$db_passwd) or $conn=my_mysql_connect($host,$user_D,$db_passwd) or $conn=my_mysql_connect($host,$user_E,$db_passwd) or die("Impossibile accedere a mysql: ".mysql_error());
$db=mysql_select_db("$dbname") or die("Impossibile selezionare il database: ".mysql_error());
//****************************************************************************************************** 
Ma mi esce ancora l'errore!

Scondo voi come posso fare?