1 Vote Vote

Associative array logic--php

Posted by topdog 550 days ago Questions| data row array All
 $query="SELECT file_date,application,language,loc FROM table1 WHERE language!='total' AND module_id=306 ORDER by file_date";
     return(get_data($locdb_handler,$query));
}

function get_data($handler,$qry){
  $result=mysql_query($qry,$handler);
  while($row = mysql_fetch_array($result)){
    $data['data'][$row[0]]['data']['status'][$row[1]]+=$row[3];
    $data['total'][$row[0]]+=$row[3];
  }

$data['data'][$row[0]]['data']['status'][$row[1]]+=$row[3];-----> What does this line above convey. There is a simple query....I wanna knw how we are mapping this...Please help

Originally asked by: user510749 on Stack Overflow

Discuss Bury


Who Voted for this Question