|
@@ -90,6 +90,10 @@ function productsCreator($table, $schema)
|
|
|
} elseif ($row_array[$fieldCounter] == "") {
|
|
} elseif ($row_array[$fieldCounter] == "") {
|
|
|
$fieldsValues[] = '\'\'';
|
|
$fieldsValues[] = '\'\'';
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ if (!mb_check_encoding($row_array[$fieldCounter], 'UTF-8')) {
|
|
|
|
|
+ $row_array[$fieldCounter] = iconv('ISO-8859-2', 'UTF-8', $row_array[$fieldCounter]);
|
|
|
|
|
+ }
|
|
|
|
|
+ //print $row_array[$fieldCounter] . '<br>';
|
|
|
$fieldsValues[] = '\'' . $row_array[$fieldCounter] . '\'';
|
|
$fieldsValues[] = '\'' . $row_array[$fieldCounter] . '\'';
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -135,7 +139,8 @@ function runQuery($sql, $table)
|
|
|
if (!empty($sql_command)) {
|
|
if (!empty($sql_command)) {
|
|
|
$resql = $db->query($sql_command);
|
|
$resql = $db->query($sql_command);
|
|
|
if (!$resql) {
|
|
if (!$resql) {
|
|
|
- echo $sql . '<br>';
|
|
|
|
|
|
|
+ //echo $sql . '<br>';
|
|
|
|
|
+ echo '<br>';
|
|
|
echo "Hiba történt: " . $db->lasterror() . '<br>';
|
|
echo "Hiba történt: " . $db->lasterror() . '<br>';
|
|
|
echo $sql_command . '<br><br>';
|
|
echo $sql_command . '<br><br>';
|
|
|
}
|
|
}
|