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

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to