I am very curious why gidgreen decided to implement:
function qa_db_read_one_value($result, $allowempty=false)
And why not directly:
function qa_db_read_one_value($result)
while throwing back "null" if there are no results.
Why am I asking?
I too often forget to add a "true" in the end of the query! Arbitrary example:
qa_db_read_one_value(qa_db_query_sub(
'SELECT parentid FROM ^categories WHERE categoryid=#',
$categoryid
));
If there is no parentid, instead of NULL we get an error message and the script breaks at this point.
Thanks,
Kai