Documentation says it needs two parameters:
string mysqli_real_escape_string ( mysqli $link , string $escapestr )
The first one is a link for a mysqli instance, the second one is the string to escape.
More Related Contents:
- Save the data into a database and return another value from database using PHP
- How to deal with mysqli problems? mysqli_fetch_array(): Argument #1 must be of type mysqli_result
- How to check if a row exists in MySQL? (i.e. check if username or email exists in MySQL)
- mysqli bind_param for array of strings
- Single result from database using mysqli
- Use an array in a mysqli prepared statement: `WHERE .. IN(..)` query [duplicate]
- Fatal error: Call to undefined function mysqli_connect()
- Warning: mysqli_query() expects parameter 1 to be mysqli, null given in
- Why is mysqli giving a “Commands out of sync” error?
- How can I get an unknown username given an ID?
- Build SELECT query with dynamic number of LIKE conditions as a mysqli prepared statement
- mysqli_query() expects parameter 1 to be mysqli, object given
- MySQLi count(*) always returns 1
- Warning: mysqli_connect(): (HY000/2002): No such file or directory
- Use one bind_param() with variable number of input vars
- Using Mysqli bind_param with date and time columns?
- PHP UPDATE prepared statement
- SELECT * FROM in MySQLi
- Mysqli fetch_assoc vs fetch_array
- Mysqli throws “Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given” [duplicate]
- Is mysqli extension enabled in this php configuration?
- php warning: mysqli_close() expects parameter 1 to be mysqli
- Getting error mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server [duplicate]
- Get number of rows matched by UPDATE query with PHP mysqli
- How to use mysqli_query() in PHP?
- mysqli_fetch_array returning only one result
- PHP: mysql v mysqli v pdo [closed]
- How do I ensure I caught all errors from MySQLi::multi_query?
- Why cannot the PHP hide the error message thrown by the MySQL connection?
- new mysqli(): how to intercept an ‘unable to connect’ error?