title: echo json_encode($row) returns duplicate values
body: <p>here's my php code</p>
  
  <pre><code>$result = mysql_query("select * from backup where owner='$email'") or die (mysql_error());
  $dataCount = mysql_num_rows($result);
  $row = mysql_fetch_array($result);
  echo json_encode($row);
  </code></pre>
  
  <p>and it returns this:</p>
  
  <pre><code>{"0":"1","id":"1","1":"2015","year":"2015","2":"55","necessities":"55","3":"10","savings":"10","4":"10","entertainment":"10"}
  </code></pre>
  
  <p>this is how jsonviewer.stack.hu shows it 
  <a href="https://i.stack.imgur.com/w1tsA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w1tsA.png" alt="jsonviewer"></a></p>
  
  <p>fyi, there's only one row of data inside the table. but it seems json_encode($row) displays the value twice, but firstly using number (0 - 4) as the label, then it uses the column name (id, year, necessities, savings, entertainment) as the label.</p>
  
  <p>how can I make it to display the value only once, using the column name?</p>