Friday 2 August 2013

Get database field names:

while($row = $STH->fetch(PDO::FETCH_ASSOC))
{
$data[] = $row;
}
$colNames = array_keys(reset($data));

No comments:

Post a Comment