This topic is locked
[SOLVED]

 mysqli_real_escape_string

12/16/2013 4:44:48 AM
PHPRunner General questions
B
Bert author

Hi,
I need to escape a string before doing a customQuery and need to use mysqli_real_escape_string which needs the database link parameter.
I tried mysqli_real_escape_string($conn, $html); but $conn is not the database link as it seems.
Can anybody tell me which variable holds the database link in PHPRunner 7.0?
Thanks,
Bert
PS: I use addslashes as a workaround for now.

Admin 12/16/2013

Before using $conn add the following line of code to your event:

global $conn;
B
Bert author 12/17/2013

Thanks,
Bert