title: cannot read property of undefined/property not defined
body: <p>My array is returning information and has data in it (not null) but yet it still errors saying:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'date_appeal_received' of undefined" or "Uncaught ReferenceError: date_appeal_received is not defined.</p>
  </blockquote>
  
  <p>I've tried:  </p>
  
  <pre><code>console.log(result.parcel[1].date_appeal_received);  
  console.log(result.parcel[1][date_appeal_received]);  
  console.log(result.parcel[1]["date_appeal_received"]);  
  </code></pre>
  
  <p>It will return the array completely if I just put <code>console.log(result);</code> but I need to put select property values into input boxes.</p>
  
  <p>Here's the code:</p>
  
  <p>PHP</p>
  
  <pre><code>&lt;?php
  require_once('../config.php');
  
  if(isset($_GET['parcel_id'])) {
      $db = new ezSQL_mysql(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
  
      $parcel = $db-&gt;get_results("select * from parcels where parcel_id=" . $_GET['parcel_id']);
      $comment_count = $db-&gt;get_var("select count(*) as count from comments where parcel_id=" . $_GET['parcel_id']);
  
      echo json_encode(array('parcel'=&gt;$parcel,'comment_count'=&gt;$comment_count));
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>jQuery: </p>
  
  <pre><code>$.ajax({
      url: "classes/get-apn-count-comments.php?parcel_id=" + parcel_id,
      type: "GET",
      data: { parcel_id : parcel_id },
      dataType: 'json',
      error: function(SMLHttpRequest, textStatus, errorThrown){
          alert("An error has occurred making the request: " + errorThrown);
      },
      success: function(result){
              //do stuff here on success
              //console.log(result);
              $('#ViewComments').val('View ' + result.comment_count + ' Comments');
              if (result.parcel[0].apn != null){ $('#ParcelNumber').html(result.parcel[0].apn)
              } else { $('#ParcelNumber').html(" "); }
              console.log(result.parcel[1].date_appeal_received);
              /*if (result.parcel[1].date_appeal_received != null) { $('#DateAppealReceived').html(result.parcel[1].date_appeal_received);
              } else { $('#DateAppealReceived').html(" "); }
              if (result.parcel[2].date_appeal_received != null) { $('#BosMeetingDate').html(result.parcel[2].bos_meeting_date);
              } else { $('#BosMeetingDate').html(" "); }
              if (result.parcel[3].late_returns_date != null) { $('#LateReturnsDate').html(result.parcel[3].late_returns_date);
              } else { $('#LateReturnsDate').html(" "); }
              if (result.parcel[4].determination_notice_sent_date != null) { $('#DeterminationNoticeSent').html(result.parcel[4].determination_notice_sent_date);
              } else { $('#DeterminationNoticeSent').html(" "); }
              if (result.parcel[5].final_determination != null) { $('#FinalDetermination').html(result.parcel[5].final_determination);
              } else { $('#FinalDetermination').html(" "); }
              if (result.parcel[6].analysis_recommendation != null) { $('#AnalysisRecommendation').html(result.parcel[6].analysis_recommendation);
              } else { $('#AnalysisRecommendation').html(" "); }
              if (result.parcel[7].email_address != null) { $('#EmailAddress').html(result.parcel[7].email_address);
              } else { $('#EmailAddress').html(" "); }
              if (result.parcel[8].phone_number != null) { $('#PhoneNumber').html(result.parcel[8].phone_number);
              } else { $('#PhoneNumber').html(" "); }*/
      }
  });
  </code></pre>
  
  <p>Array Result:</p>
  
  <pre><code>{
      "parcel": [{
          "parcel_id": "89415",
          "tax_year": "2012",
          "apn": "134-44-114",
          "vin": null,
          "owner_name": "BARRERA DIANE",
          "in_care_of": null,
          "mailing_address_1": "2402 W RIVIERA DR",
          "mailing_address_2": null,
          "city_state_zip": "TEMPE AZ 85282",
          "suite": null,
          "country": null,
          "initial_mail_date": "2012-05-11",
          "initial_return_date": null,
          "final_mail_date": "2012-07-13",
          "final_return_date": null,
          "reclass_mail_date": "2012-09-11",
          "bos_meeting_date": "2012-10-17",
          "date_appeal_received": "2012-09-18",
          "late_returns_date": null,
          "determination_notice_sent_date": null,
          "response_code": "No Response",
          "email_address": "dianefm@cox.net",
          "phone_number": "4807734925",
          "notification_type": null,
          "analysis_recommendation": "3",
          "final_determination": "A",
          "account": null,
          "revised_legal_class": null,
          "other": null,
          "change_address_request": null,
          "determination_notice_sent": null,
          "appeal_address_match": null,
          "situs_address_1": "2402 W RIVIERA DR",
          "situs_address_2": null,
          "situs_city_state_zip": "TEMPE AZ 85282",
          "owner_city": null,
          "owner_state": null,
          "owner_zip": null,
          "situs_city": null,
          "situs_state": null,
          "situs_zip": null,
          "penalty_amount": null,
          "penalty_mail_date": null,
          "penalty_appeal_recieved_date": null,
          "penalty_bos_meeting_date": null,
          "penalty_determination_notice_sent_date": null,
          "penalty_determination": null
      }],
      "comment_count": "9"
  }
  </code></pre>