<?php

//Function to query the db and return the correct columns for the cases table html.

function columns_array($dbh)
	
	{
		
		$get_columns = $dbh->prepare('SELECT * from cm_columns');
		$get_columns->execute();
		$result = $get_columns->fetchAll(PDO::FETCH_ASSOC);
		
		return $result;
		
	}	


Add function to read columns from the db and generate appropriate html.
Add function to read columns from the db and generate appropriate html.

git-svn-id: 245d8f85226f8eeeaacc1269b037bb4851d63c96@897 54a900ba-8191-11dd-a5c9-f1483cedc3eb
