Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8918261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:42:25+00:00 2026-06-15T05:42:25+00:00

To give some background, I’m creating a web app using mostly jQuery. I scrape

  • 0

To give some background, I’m creating a web app using mostly jQuery. I scrape a number of values from a page on another domain; 3 arrays of integers and a date in string format. These values are then displayed on my page. Each of these arrays has 7 numbers.

It makes sense to me to store each array as a single entry in my MySQL database. My original idea was to store the values of each array as a JSON object and insert that into my entry in the DB from reading around SO this doesn’t seem like the approach to take. I don’t envisage having any need to sort the values at any stage in the future. I will just need the value of each integer and don’t need to know how each integer in each array relates to one another.

Can someone point me in the right direction regarding the storing and retrieval of these values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:42:27+00:00Added an answer on June 15, 2026 at 5:42 am

    Usually arrays are kind of iffy to handle. In most cases arrays are values that I need to process later in the front end for the user with javascript (can’t think of another use anyway). Therefore what I usually do is store them as text by using

    $array = array('one', 'two', 'three');
    $textToSaveinDB = implode(',', $array);
    

    When I retrieve this you would just use the other way around

    $textFromDB = "one,two,three";
    $array = explode(textFromDB, ',')
    

    Afterwards you can do whatever you need to do with the array. For example use JSON_encode() and send it to the user via ajax.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To give some background, I am making a UINavigationControlled-based blog type app (I suppose
I am building a Recent Activity page just to give some background. Basically this
I would really like some advice here, to give some background info I am
Can someone give me some info/background info on how I might go about writing
Can some give me good jQuery lightbox plugin which has zoomin and zoomout function
To give some background on my issue: I have 3 tables called Products, Packages,
Possible Duplicate: Show more digits in PHP Let me give some background information about
And if you do, can you give some background information on the implementation and
firstly I'll give some background regarding the situation. I have a website containing approximately
-Let me give some background first- My assignment is to take a given senario

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.