<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Jeff,<br>
      <br>
      That is really weird as the $link is valid (you can print it to
      doublecheck) as it is later used in the code for running the sql
      code.<br>
      <br>
      I'm not a php expert :P, but just googling, I found this:<br>
         
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/19888928/why-mysql-real-escape-string-returns-boolean">http://stackoverflow.com/questions/19888928/why-mysql-real-escape-string-returns-boolean</a><br>
      <br>
      Could you add the error_reporting(E_ALL) as suggested in the first
      response, maybe we get a clue on what is going wrong.<br>
      <br>
      Thanks,<br>
    </tt>
    <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 26.08.2016 06:05, Jeff Wilkie wrote:<br>
    </div>
    <blockquote
cite="mid:CANFkrT25RE+6fP5O-6wJt_muV1r6kjaj_Rpfna8P=LCsxx8xzg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div><span style="background-color:rgb(255,255,255)">When
              using</span></div>
          <div><span style="background-color:rgb(255,255,255)"><br>
            </span></div>
          <div><span style="background-color:rgb(255,255,255)"><span
                style="font-family:Menlo">$match_exp =
                mysql_real_escape_string($</span><span
                style="font-family:Menlo">matc<wbr>h_exp, </span><b
                style="font-family:Menlo">$link</b><span
                style="font-family:Menlo">);</span><br>
            </span></div>
          <div><span
              style="font-family:Menlo;background-color:rgb(255,255,255)"><br>
            </span></div>
          <div><span
              style="font-family:Menlo;background-color:rgb(255,255,255)">I
              get NULL with var_dump</span></div>
          <div><span style="background-color:rgb(255,255,255)"><br>
            </span></div>
          <span style="background-color:rgb(255,255,255)">When using </span>
          <div><span style="background-color:rgb(255,255,255)"><br>
            </span></div>
          <div><span style="background-color:rgb(255,255,255)"><span
                style="font-family:Menlo">$match_exp =
                mysql_real_escape_string($</span><span
                style="font-family:Menlo">matc<wbr>h_exp</span><span
                style="font-family:Menlo">);</span></span></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="Menlo"><br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="Menlo">I get with a var_dump<br>
            </font>
            <div><span style="background-color:rgb(255,255,255)"><br>
              </span></div>
            <div><span
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;text-align:-webkit-center;background-color:rgb(255,255,255)">string(10)
                "^\\+1907.*"</span></div>
          </div>
          <div><span
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;text-align:-webkit-center;background-color:rgb(255,255,255)"><br>
            </span></div>
          <div><span
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;text-align:-webkit-center;background-color:rgb(255,255,255)">Thanks</span></div>
          <div><span
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;text-align:-webkit-center;background-color:rgb(255,255,255)">Jeff</span></div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>