Why dont you use mysql_pconnect instead ? much faster if you have lots of users.
Now to your problem, is this a possible
solution ?
$link = @mysql_pconnect("host","user","password");
if ( !$link )
echo "Please Be Patient While We Process Your Request";
for ( retiries = 0; !$link && $retries < 100; $retries++ )
$link = @mysql_pconnect("host","user","password");
if ( !$link )
{
echo "Unable to establish connection..."
exit;
}
Rgds - Dan