From this simple query, I could not figure out why I am getting the repeated result one in [0] and another in [m_id]. I believe the result from given query must display only two values.
$sql="SELECT m.m_id, m.work FROM mun as m WHERE m.mun_id=7 ";
$rslt=mysql_query($sql);
$result=mysql_fetch_array($rslt);
print_r($result);
Output:
Array
(
[0] => 7
[m_id] => 7
[1] => 260
[work] => 260
)
Can somebody figure me out what I am doing wrong. Thank you.