Page 1 of 1

how to use mysqli_real_escape_string

Posted: Mon Jan 16, 2017 2:08 am
by Bishu

I would like to escape a special character by using the mysqli_real_escape_string
My main project database is at mssql
and I am using mysql as a link table

I try as -
$shopname = mysqli_real_escape_string ($conn["mysqldatabase"] , $shopname);
getting error as -
Fatal error: Cannot use object of type ADODB_ado_mssql as array .............................

I try again as -
$shopname = mysqli_real_escape_string (Conn("mysqldatabase") , $shopname);
getting error as -
Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, object given in ...............


Re: how to use mysqli_real_escape_string

Posted: Mon Jan 16, 2017 10:15 am
by mobhar

Try to use "ew_QuotedValue" global function. For more info, please see this function in the generated "phpfn*.php" file.