Files
crm.clientright.ru/check_cyrillic_c.php

27 lines
897 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require_once('config.php');
global $adb;
// Проверим, есть ли поле с кириллической "с"
$query = "SELECT fieldname, fieldlabel FROM vtiger_field WHERE tabid = (SELECT tabid FROM vtiger_tab WHERE name = 'Project') AND fieldname LIKE '%f_1994'";
$result = $adb->pquery($query, array());
echo "Fields ending with f_1994:\n";
while ($row = $adb->fetch_array($result)) {
$fieldname = $row['fieldname'];
$fieldlabel = $row['fieldlabel'];
echo "$fieldname - $fieldlabel\n";
}
// Также проверим структуру таблицы vtiger_project
echo "\nChecking vtiger_project table structure for f_1994:\n";
$query2 = "SHOW COLUMNS FROM vtiger_project LIKE '%f_1994'";
$result2 = $adb->pquery($query2, array());
while ($row2 = $adb->fetch_array($result2)) {
$field = $row2['Field'];
echo "$field - " . $row2['Type'] . "\n";
}
?>