Menu
I’m sick of copy/pasting a bunch of code every time I access a database. To get around that, I’m building a small data access library, but I’m having trouble getting my array to look right. I need a multi dimensional array, and would prefer that it’s not an array of arrays (which is what I currenly have).
Here is what i have:
[CODE]
while( $row = sqlsrv_fetch_array( $queryResults, SQLSRV_FETCH_ASSOC))
{
array_push($allResults,$row);
}
^ This gives me an array of arrays, how can I get a multi dimensional array that isn’t an array of arrays so I can get values by echo($environments[0,3]); for example?