Remove cp1251. Я сильно недооценивал трудолюбие неизвестного кодера.
This commit is contained in:
@@ -16,7 +16,7 @@ class Telegram
|
||||
private function send($to, $from, $text, $fromType)
|
||||
{
|
||||
mysql_query('START TRANSACTION');
|
||||
$ins = mysql_query("INSERT INTO `telegram` (`uid`,`from`,`fromType`,`text`,`time`) VALUES ('" . $to . "','" . $from . "','" . $fromType . "','" . mysql_real_escape_string(AddSlashes(HtmlSpecialChars($text, null, 'cp1251'))) . "','" . time() . "')");
|
||||
$ins = mysql_query("INSERT INTO `telegram` (`uid`,`from`,`fromType`,`text`,`time`) VALUES ('" . $to . "','" . $from . "','" . $fromType . "','" . mysql_real_escape_string(AddSlashes(HtmlSpecialChars($text, null))) . "','" . time() . "')");
|
||||
mysql_query('COMMIT');
|
||||
if ($ins) {
|
||||
return mysql_insert_id();
|
||||
|
||||
Reference in New Issue
Block a user