[OpenSIPS-Users] OPENSIPS_CP DIALPLAN

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Aug 26 11:16:20 CEST 2016


Hi Jeff,

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.

I'm not a php expert :P, but just googling, I found this:
http://stackoverflow.com/questions/19888928/why-mysql-real-escape-string-returns-boolean

Could you add the error_reporting(E_ALL) as suggested in the first 
response, maybe we get a clue on what is going wrong.

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 26.08.2016 06:05, Jeff Wilkie wrote:
> When using
>
> $match_exp = mysql_real_escape_string($match_exp, *$link*);
>
> I get NULL with var_dump
>
> When using
>
> $match_exp = mysql_real_escape_string($match_exp);
>
> I get with a var_dump
>
> string(10) "^\\+1907.*"
>
> Thanks
> Jeff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160826/2ed82b94/attachment.htm>


More information about the Users mailing list