How to get columns and values from database in one array
Posted: Tue Apr 27, 2021 4:58 pm
Hi,
I'm searching a way how to get all column names and values from a sql SELECT statement into one array.
Usually I'd use mysqli_fetch_assoc or fetch(PDO::FETCH_ASSOC) but both options doesn't work.
Is there any other possibility?
BR,
Oliver
I'm searching a way how to get all column names and values from a sql SELECT statement into one array.
Usually I'd use mysqli_fetch_assoc or fetch(PDO::FETCH_ASSOC) but both options doesn't work.
Is there any other possibility?
BR,
Oliver