Welcome Guest, Not a member yet? Register   Sign In
mysql_real_escape_string() expects parameter 1 to be string, array given
#6

(This post was last modified: 04-24-2016, 05:51 AM by ivantcholakov.)

@cupboy

1. You are trying to apply a function to a column in the returned array. What this function is going to do, what the goal is?

2. mysql_real_escape_string() is a function for escaping value when you prepare a SQL statement. You apply it on the returned result. Why?

3. mysql_real_escape_string() belongs to a certain SQL driver that is deprecated and as far as I know removed in PHP7.

4. mysql_real_escape_string() probably does not match to the current database driver that CodeIgniter uses. If you need such an escaping, see in documentation what routines the Database class provides.

Remove this code, explain exactly what you intend to do.
Reply


Messages In This Thread
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by ivantcholakov - 04-24-2016, 05:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB