Jump to content

Page list json field?


Manaus
 Share

Recommended Posts

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

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 :-))

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...