I have a mysql statement which returns 2 values for each row.
Each time I loop through these results, i want to add them to an array.
I want one value to be the key, and the other to be the array value.
I tried this, but it doesn't seem to work:
$dataarray[] = $row['id']=>$row['data'];