how to use mysqli_real_escape_string

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 427

how to use mysqli_real_escape_string

Post 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 ...............


mobhar
User
Posts: 11660

Post by mobhar »

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


Post Reply