mam czasem błąd:
Cytat
mysql_connect(): User 'lsh' has exceeded the 'max_user_connections' resource (current value: 1) class_core.php on line 279

linia 279:
  1. <?php
  2. function db_connect($servername, $port, $username, $password, $usepconnect)
  3. {
  4. if (function_exists('catch_db_error'))
  5. {
  6. set_error_handler('catch_db_error');
  7. }
  8.  
  9. do
  10. {
  11. $link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);
  12. }
  13. while ($link == false AND $this->reporterror);
  14.  
  15. return $link;
  16. }
  17. ?>

czy słuszne byłoby gdybym dodał przekierowanie/refresh np na strone glowna w razie wystapienia tego bledu (cos w rodzaju: header("Location: index.php"); )?
czy to nie obciazy bardziej bazy sql?


edit: swoja droga czy zna ktos bezplatne konta sql z ktorych sam korzysta i jest zadowolony?