pquery($query, array()); echo "Custom fields in vtiger_project table:\n"; while ($row = $adb->fetch_array($result)) { echo $row['Field'] . " - " . $row['Type'] . "\n"; } echo "\n"; // Проверим, есть ли поле cf_1994 $query2 = "SHOW COLUMNS FROM vtiger_project LIKE 'cf_1994'"; $result2 = $adb->pquery($query2, array()); if ($adb->num_rows($result2) > 0) { echo "Field cf_1994 EXISTS in vtiger_project\n"; $row = $adb->fetch_array($result2); echo "Type: " . $row['Type'] . "\n"; } else { echo "Field cf_1994 does NOT exist in vtiger_project\n"; } ?>