Manaus Posted May 2, 2014 Share Posted May 2, 2014 Hello, I need to store the pages a user has seen within a field, I'm currently using json_encode(pages array) to store the pages list within a textarea field, but I wonder if there is any better way. JSON use with javascript / ajax / php is making my code a bit bloated, and I'm starting to lose track of the overall design of my app. Is there any better way to keep track of those ids? Thanks for any suggestion! Link to comment Share on other sites More sharing options...
kongondo Posted May 2, 2014 Share Posted May 2, 2014 Manaus, Not sure what your App does or its design, but I'm not getting why you need to store IDs (basically integers) using JSON? Can't these be stored as comma separated values? If you want to go the JSON route, there's various threads on the forums you can have a look at (Google ) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now