title: can't see my site after log in
body: <p>i've got a error in my 'index.php' for my membre area for my site i've got those error</p>
  
  <blockquote>
    <p>Warning: mysql_connect() [function.mysql-connect]: Host
    'srv9.000webhost.com' is not allowed to connect to this MySQL server
    in /home/a8479867/public_html/pages/index.php on line 6</p>
    
    <p>Warning: mysql_select_db(): supplied argument is not a valid
    MySQL-Link resource in /home/a8479867/public_html/pages/index.php on
    line 7</p>
    
    <p>Warning: mysql_query() [function.mysql-query]: Access denied for user
    'a8479867'@'localhost' (using password: NO) in
    /home/a8479867/public_html/pages/index.php on line 11</p>
    
    <p>Warning: mysql_query() [function.mysql-query]: A link to the server
    could not be established in /home/a8479867/public_html/pages/index.php
    on line 11</p>
  </blockquote>
  
  <p>Error SQL !</p>
  
  <pre><code>SELECT count(*) FROM membre WHERE login="momo1o4" AND pass_md5="b83287a789719ce4a412b0b9da582cee"
  Access denied for user 'a8479867'@'localhost' (using password: NO)
  </code></pre>
  
  <p>Here is my Code</p>
  
  <pre><code>&lt;?php
  // on teste si le visiteur a soumis le formulaire de connexion
  if (isset($_POST['connexion']) &amp;&amp; $_POST['connexion'] == 'Connexion') {
      if ((isset($_POST['login']) &amp;&amp; !empty($_POST['login'])) &amp;&amp; (isset($_POST['pass']) &amp;&amp; !empty($_POST['pass']))) {
  
      $base = mysql_connect ('server', 'login', 'password');
      mysql_select_db ('nom_base', $base);
  
      // it tests whether a database entry contains the couple login / pass
      $sql = 'SELECT count(*) FROM membre WHERE login="'.mysql_escape_string($_POST['login']).'" AND pass_md5="'.mysql_escape_string(md5($_POST['pass'])).'"';
      $req = mysql_query($sql) or die('Erreur SQL !&lt;br /&gt;'.$sql.'&lt;br /&gt;'.mysql_error());
      $data = mysql_fetch_array($req);
  
      mysql_free_result($req);
      mysql_close();
  
      // if a response is obtained, then the user is a member
      if ($data[0] == 1) {
          session_start();
          $_SESSION['login'] = $_POST['login'];
          header('Location: membre.php');
          exit();
      }
      // if there is no response, the visitor was wrong either in his login or password in
      elseif ($data[0] == 0) {
          $erreur = 'Compte non reconnu.';
      }
      // if not, then there is a big problem :)
      else {
          $erreur = 'Probème dans la base de données : plusieurs membres ont les mêmes identifiants de connexion.';
      }
      }
      else {
      $erreur = 'Au moins un des champs est vide.';
      }
  }
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Accueil&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  Connexion à l'espace membre :&lt;br /&gt;
  &lt;form action="index.php" method="post"&gt;
  Login : &lt;input type="text" name="login" value="&lt;?php if (isset($_POST['login'])) echo htmlentities(trim($_POST['login'])); ?&gt;"&gt;&lt;br /&gt;
  Mot de passe : &lt;input type="password" name="pass" value="&lt;?php if (isset($_POST['pass'])) echo htmlentities(trim($_POST['pass'])); ?&gt;"&gt;&lt;br /&gt;
  &lt;input type="submit" name="connexion" value="Connexion"&gt;
  &lt;/form&gt;
  &lt;a href="inscription.php"&gt;Vous inscrire&lt;/a&gt;
  &lt;?php
  if (isset($erreur)) echo '&lt;br /&gt;&lt;br /&gt;',$erreur;
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>