Answers for "php PDO howto columns from table"

PHP
0

php PDO howto columns from table

$result = $db->query('select * from table limit 1');
$fields = array_keys($result->fetch(PDO::FETCH_ASSOC));
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language