Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php PDO howto columns from table

$result = $db->query('select * from table limit 1');
$fields = array_keys($result->fetch(PDO::FETCH_ASSOC));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #PDO #howto #columns #table
ADD COMMENT
Topic
Name
7+7 =