Jump to content

Loop through Array and Store Results


a2rodger

Recommended Posts

 

I am trying to loop through the following array and store

the date and count for each result in my mysql database.

 

Please Help!

 

  1.

      Array

  2.

      (

  3.

          [result] => Array

  4.

              (

  5.

                  [queryterm] => Britney Spears

  6.

                  [days] => 7

  7.

                  [searchurl] => http://technorati.com/search/Britney+Spears

  8.

              )

  9.

          [item] => Array

  10.

              (

  11.

                  [0] => Array

  12.

                      (

  13.

                          [date] => 2008-02-24

  14.

                          [count] => 889

  15.

                      )

  16.

                  [1] => Array

  17.

                      (

  18.

                          [date] => 2008-02-23

  19.

                          [count] => 2403

  20.

                      )

  21.

                  [2] => Array

  22.

                      (

  23.

                          [date] => 2008-02-22

  24.

                          [count] => 2539

  25.

                      )

  26.

                  [3] => Array

  27.

                      (

  28.

                          [date] => 1985

  29.

                          [count] => 1775

  30.

                      )

  31.

                  [4] => Array

  32.

                      (

  33.

                          [date] => 2008-02-20

  34.

                          [count] => 1231

  35.

                      )

  36.

                  [5] => Array

  37.

                      (

  38.

                          [date] => 2008-02-19

  39.

                          [count] => 2814

  40.

                      )

  41.

                  [6] => Array

  42.

                      (

  43.

                          [date] => 2008-02-18

  44.

                          [count] => 2510

  45.

                      )

  46.

              )

  47.

      )

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.