Get database field names:
while($row = $STH->fetch(PDO::FETCH_ASSOC))
{
$data[] = $row;
}
$colNames = array_keys(reset($data));
No comments:
Post a Comment