how can I get the column names without explicitly asking for it?
I have this SQL query.
SELECT * FROM Machines WHERE id='$id'
Is it possible to get the column names through a PHP function? Something like this:
mysqli_fetch_columns($result)
I understand that you can get the column names through a SQL Statement, however this is not practical for me. I would like to retreive the column names through some PHP function.