<?php
$db = new PDO('mysql:host=localhost;dbname=orchview2;charset=utf8mb4', 'root', '');
$r = $db->query('DESCRIBE pm_template_tasks')->fetchAll(PDO::FETCH_ASSOC);
foreach ($r as $c) echo $c['Field'] . ' ' . $c['Type'] . "\n";