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

[eluser]gscharlemann[/eluser]
So, I assume the Active Record class doesn't addslashes and remove slashes when querying the DB (although it seems to me like it should, or atleast give you the option of being able to). Perhaps something can be done to all of the values in the array of data. The array is 2D looks something like:
Code:
Array (
    1 => Array (
        "Name" => "Sean O'Keefe"
        "Age" => "13"
    )
    2 => Array (
        "Name" => "Jason Jones"
        ...
    )
)

Can something be done using array_values function? I really don't want to iterate through the entire array and apply the addslashes function to each value


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