PHP’s Pdo doesnt have a default columnname function. After searching Google I found that many people seem to be looking for this function. You can get the columnnames with an easy query to the schema:

$querystring = "SELECT * FROM INFORMATION_SCHEMA.Columns where TABLE_NAME = $table";

Related Blogs

  • Related Blogs on

Leave a Reply

Your email address will not be published. Required fields are marked *