title: javascript multidimensional array out of mysql table - dont know whats that kind of Object Object
body: <p>I am trying to get my data out of a mysql table and work with those data in Javascript.
  I'm home in php and there are many differences to javascript :( and theres my problem I do think in php and need to understand javascript :)</p>
  
  <p>ok heres the question:
  I get from my php script the data out of the table in thsi format: used </p>
  
  <pre><code>while($Search=mysql_fetch_assoc($abfrage)){
    $data[] = $Search;
   }
  
   echo json_encode( $data );
  </code></pre>
  
  <p>and get this data:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [id] =&gt; 1 [date] =&gt; 2017-12-01 [time] =&gt; 00:00:00  [active] =&gt; 1 ) [1] =&gt; Array ( [id] =&gt; 2 [date] =&gt; 2017-12-02 [time] =&gt; 00:00:00 [active] =&gt; 1 ) [2] =&gt; Array ( [id] =&gt; 3 [date] =&gt; 2017-12-08 [time] =&gt; 00:00:00 [active] =&gt; 1 ) [3] =&gt; Array ( [id] =&gt; 4 [date] =&gt; 2017-12-09 [time] =&gt; 00:00:00 [active] =&gt; 1 ) [4] =&gt; Array ( [id] =&gt; 5 [date] =&gt; 2017-12-15 [time] =&gt; 00:00:00 [active] =&gt; 1 ) [5] =&gt; Array ( [id] =&gt; 6 [date] =&gt; 2017-12-16 [time] =&gt; 00:00:00 [active] =&gt; 1 ) [6] =&gt; Array ( [id] =&gt; 7 [date] =&gt; 2017-12-22 [time] =&gt; 20:00:00 [active] =&gt; 1 ) )
  </code></pre>
  
  <p>so I used then javascript to get an array or object or whatever this is. I dont really know much about objects-.</p>
  
  <pre><code>var myArr = JSON.parse
  </code></pre>
  
  <p>to get an array out of this data:</p>
  
  <pre><code>[[object Object] {
     active: "1",
     date: "2017-12-01",
     id: "1",
    time: "00:00:00"
  }]
  </code></pre>
  
  <p>what does this 
  [[object Object] 
  mean is this an array or an object and how do I work with it?</p>
  
  <p>My goal is to see if there is a date inside the data which comes from the database and if yes check if there is also a time set to this date.</p>
  
  <p>I've made an example at jsbin for testing but I dont know how to go on to receive the data I want:
  <a href="http://jsbin.com/wariparoce/edit?html,js,console,output" rel="nofollow noreferrer">http://jsbin.com/wariparoce/edit?html,js,console,output</a></p>
  
  <p>Thanks for all your time and patience :)</p>
  
  <p>Stev</p>