mysql_real_escape_string() expects parameter 1 to be string, array given |
@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. |
Messages In This Thread |
mysql_real_escape_string() expects parameter 1 to be string, array given - by cupboy - 04-22-2016, 10:27 PM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by Wouter60 - 04-23-2016, 12:56 AM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by Happy Camper - 04-23-2016, 08:09 AM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by InsiteFX - 04-23-2016, 11:14 AM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by cupboy - 04-23-2016, 02:04 PM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by ivantcholakov - 04-24-2016, 05:50 AM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by cupboy - 04-24-2016, 04:11 PM
RE: mysql_real_escape_string() expects parameter 1 to be string, array given - by ivantcholakov - 04-24-2016, 06:51 PM
|