<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Jeff,<br>
      <br>
      We are getting closer :).<br>
      <br>
      I found this
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/9014877/mysql-real-escape-string-error-despite-connecting-to-database-what-am-i-doing">http://stackoverflow.com/questions/9014877/mysql-real-escape-string-error-despite-connecting-to-database-what-am-i-doing</a><br>
      <br>
      where the problem goes into mysql versus mysqli. I guess your MDB2
      uses mysqli ?? Could you list all the php packages you have on
      your system along with all the php pears (pear list) ?<br>
      <br>
      Also, for testing purposes, try to change </tt><code><span
        class="pln">mysql_real_escape_string() into </span></code><code><span
        class="pln">mysqli_real_escape_string</span></code><code><span
        class="pln"></span></code><tt>()</tt>
    <pre style="" class="lang-php prettyprint prettyprinted"><code><span class="pln">
Thanks,
</span></code></pre>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 30.08.2016 00:41, Jeff Wilkie wrote:<br>
    </div>
    <blockquote
cite="mid:CANFkrT2j38nm0U+Ea2go-+ULD3nKtYwrojwFhdnrvknOUmw6tA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="text-align:-webkit-center;background-color:rgb(255,255,255)"><font
            color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span
              style="font-size:12px">Got this from a var dump on $link
              when i process if !is_resource.  Not sure if this actually
              provides any information that may help.  I'm digging
              online to see why the $link is not connecting as a
              resource in this portion for whatever reason: </span></font></span>
        <div>
          <div style="text-align:-webkit-center"><font color="#000000"
              face="Verdana, Arial, Helvetica, sans-serif"><span
                style="font-size:12px"><br>
              </span></font></div>
          <div style="text-align:-webkit-center"><span
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(233,236,239)">Warning:
              mysql_real_escape_string() expects parameter 2 to be
              resource, object given in
              /var/www/opensips_cp/web/tools/system/dialplan/dialplan.php
              on line 288</span><font color="#000000" face="Verdana,
              Arial, Helvetica, sans-serif"><span style="font-size:12px"><br>
              </span></font></div>
          <div><span
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-align:-webkit-center;background-color:rgb(255,255,255)"><br>
            </span></div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>