Function db_query
ChurchTools primary db access.
TODO: add option to process data arrays at once rather then calling this function with the same sql in a foreach loop
Parameters summary
string |
$sql |
$sql; |
array |
$params = null |
|
boolean |
$print_error = false |
$print_error; if true echo error message, else throw SQLException |
Return value summary
object
|
db_accessor |