Pdo get column names

March 1st, 2010 § 0

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

Related posts:

  1. Prototype: submit multiple select with ajax call

§ Leave a Reply

What's this?

You are currently reading Pdo get column names at westworld: a webmasters best friend.

meta