if (dbi_num_rows(result) < 1)
if (result <= RESULT_NONE)
result = dbi_query(dbc,query)
result = dbi_query(dbc,"%s",query)