Welcome Guest, Not a member yet? Register   Sign In
DB Active Record - addslashes on data?
#6

[eluser]gscharlemann[/eluser]
Really? it's not working that way for me... maybe I'm doing something wrong. I added the following function to MY_database_helper.php file:

Code:
function _mysql_real_escape_array($t){
    return array_map("mysql_real_escape_string",$t);
}

it seems to work. thanks for the feedback.


Messages In This Thread
DB Active Record - addslashes on data? - by El Forum - 11-04-2009, 12:23 PM
DB Active Record - addslashes on data? - by El Forum - 11-04-2009, 03:10 PM
DB Active Record - addslashes on data? - by El Forum - 11-04-2009, 03:14 PM
DB Active Record - addslashes on data? - by El Forum - 11-04-2009, 03:30 PM
DB Active Record - addslashes on data? - by El Forum - 11-04-2009, 06:52 PM
DB Active Record - addslashes on data? - by El Forum - 11-10-2009, 06:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB