• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mysql_real_escape_string() expects parameter 1 to be string, array given

#6
@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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.