I have my columns sort out, but I want all my column name to change to an array list.
This is what I have right now. But it keep on echoing out 'Array'. How do I go about selecting the the first value and then the next values in an array.
$col_name = array ('ID', 'Name', 'Priority','deadline');
if (in_array ($heading, $allowed_order)) {
echo "<a href=\"{$_SERVER['PHP_SELF']}?order=$heading\">$col_name</a>";
} else {
echo $heading;
}