I have the query
SELECT coluna1, coluna2... FROM tabela
I wonder if there is any method in the mysqli
class to return those columns that were used in the query, even though query
does not return records. In a% return% of records I can simply use query
in the array_keys()
method. But I can not if fetch_assoc()
does not return records, since there will be no indexes.
I need to do this because it is a query
big, and I would like to do such a dynamic process.