Function churchcore_getTableData
read data from DB
TODO: maybe always return an array to prevent problems with foreach on the results withouth further testing? Is it intended to use rather then db_query on many places? Whats the advantage to have the statement split in several variables? A 'true' sql statement is much much more readable then churchcore_getTableData('cs_service','','cdb_tag_ids is not null')
at least write it like this churchcore_getTableData( $tablename = 'cs_service', $order = '', $where = 'cdb_tag_ids is not null')
Parameters summary
string |
$tablename |
|
string |
$order = "" |
|
string |
$where = "" |
|
string |
$cols = "*" |
Return value summary
object
|
object |