Decryption of data before creating CSV file |
I have a database table that I need to convert into a CSV file using the DB Utility library's csv_from_result() function
however I need to run encryption->decrypt() on a few of the columns before I build the CSV. I can't create a new array of unencrypted data because csv_from_result() requires a valid db result object, not an array. Is there a way to do this?
Place these into one of your helper files.
PHP Code: // ----------------------------------------------------------------------- Method objectToArray converts an object to an array Method arrayToObject converts an array to an object What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |