php pdo: get the columns name of a table - Stack Overflow
How can I get all the column names from a table using PDO? id name age 1 Alan 35 2 Alex 52 3 Amy 15 The info that I want to ... ... $sql = "select column_name from information_schema.columns where table_name = 'myTable'"; PHP function credits : http://www...