title: Deprecated: mysql_pconnect():
body: <p>i am getting an error during a php execution which i think it was due to a newer php 5.5 thing.</p>
  
  <blockquote>
    <p>Deprecated: <code>mysql_pconnect()</code>: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /public_html/mydomain.com/connx.php on line 7<br>
    Apr 3, 2014<br>
    checking</p>
  </blockquote>
  
  <p>The inner code looks this way</p>
  
  <p><a href="http://justpaste.it/eyk2" rel="nofollow noreferrer">http://justpaste.it/eyk2</a></p>
  
  <p>So i thought changing the <code>mysql</code> to <code>mysqli</code> could solve the issue :</p>
  
  <pre><code>$conn = mysqli_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error("Server Down"); 
  </code></pre>
  
  <p>And instead, I'm getting this error... so i guess it was not the correct way of doing so :)</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function <code>mysqli_pconnect()</code> </p>
  </blockquote>
  
  <p>anyhow i can fix this issue ? The code was built long time ago and now i cant really get in touch with him :x</p>
  
  <p>thanks
  ** UPDATED **
  I changed the mysqli_connect and when i load the php script... it shows few errors now... just wondering do i have to change these syntax too ?</p>
  
  <pre><code>mysql_select_db($database_conn);
  mysql_query("SET NAMES UTF8");
  </code></pre>