php - Ignore value from assoc array when display -


    $result = mysql_query($sql_result);     $newarray = array();     $index=0;     while($row = mysql_fetch_assoc($result)){         $newarray[$index] = $row;            $index++;     } 

i wanna ignore value - assoc array when display. me please.enter image description here

if want remove columns containing value use array_filter:

function removeempty($v){    return $v != '-'; } while($row = mysql_fetch_assoc($result)){         $newarray[$index] = array_filter($row,"removeempty");            $index++; } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -