PHP code snippet – PDO Howto columns from table? Subash Chandran 20th November 2021 Leave a Comment $result = $db->query('select * from table limit 1'); $fields = array_keys($result->fetch(PDO::FETCH_ASSOC)); Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also How to ask for input in Python? Snippets columns of a php mysql request pdo, get just name in table with where in pdo, get table columns pdo, how to get name of rows mysql php PDO, pdo get column names, pdo get columns list, pdo get name from, pdo get table structure, php pdo COLUMN enum, php pdo get table column names, php PDO howto columns from table, php pdo query column names, php pdo title column, php PDO WHERE FIELD, php pdo with column names, select name from tavle in php pdo Change font size A Decrease font size. A Reset font size. A Increase font size.