title: How to hide "Deprecated: mysql_connect()" warning?
body: <p>I have problem.. Well.. The code that I am using is working like a dream but this message makes page look awful</p>
  
  <pre><code>Deprecated: mysql_connect(): The mysql extension is deprecated and
  </code></pre>
  
  <p>I want to hide this message from the page. Is it possible and if so.. How?</p>
  
  <p>It shows that message in this page:</p>
  
  <pre><code>    &lt;?php
  session_start();
  include_once 'dbconnect.php';
  
  if(isset($_SESSION['user'])!="")
  {
   header("Location: panel.php");
  }
  if(isset($_POST['btn-login']))
  {
   $email = mysql_real_escape_string($_POST['email']);
   $upass = mysql_real_escape_string($_POST['pass']);
   $res=mysql_query("SELECT * FROM users WHERE email='$email'");
   $row=mysql_fetch_array($res);
   if($row['password']==md5($upass))
   {
    $_SESSION['user'] = $row['user_id'];
    header("Location: panel.php");
   }
   else
   {
    ?&gt;
          &lt;script&gt;alert('Nimimerkki/Salasana väärin, yritä uudelleen');&lt;/script&gt;
          &lt;?php
   }
  
  }
  ?&gt;
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Kirjaudu Adminpaneeliin&lt;/title&gt;
  &lt;style&gt;
  /*CSS File For Sign-In webpage*/
  #body-color{
  background-image: url("/admin/kuvat/adminbg.gif");
  }
  #Sign-In{
  border:3px solid #a1a1a1;
  padding:9px 35px; 
  background:#58FA58;
  width:250px;
  border-radius:20px;
  box-shadow: 7px 7px 6px;
  }
  #button{
  border-radius:10px;
  width:100px;
  height:40px;
  background:#01DF01;
  font-weight:bold;
  font-size:20px
  }
  &lt;/style&gt;
  &lt;!-- Koodi --&gt;
  &lt;/head&gt;
  &lt;body id="body-color"&gt;
      &lt;center&gt;&lt;img src="/admin/kuvat/adminpaneeli.gif"&gt;
  &lt;div id="Sign-In"&gt;
  &lt;fieldset style="width:30%"&gt;&lt;legend&gt;Kirjaudu&lt;/legend&gt;
  &lt;form method="post"&gt;
  Sähköposti &lt;br&gt;&lt;input type="text" name="email" size="40"&gt;
  &lt;br&gt;
  Salasana &lt;br&gt;&lt;input type="password" name="pass" size="40"&gt;
  &lt;br&gt;
  &lt;input id="button" type="submit" name="btn-login" value="Kirjaudu!"&gt;
  &lt;/form&gt;
  &lt;/fieldset&gt;
  &lt;br&gt;&lt;font color="red"&gt;&lt;i&gt;Ongelmia kirjautumisessa?&lt;br&gt;Ota yhteyttä Sulivixiin!&lt;/i&gt;&lt;/font&gt;
  &lt;/div&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;a href="http://kamakellari.eu"&gt;&lt;img src="/admin/kuvat/etusivulle.gif"&gt;&lt;/a&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>