Answer the question
In order to leave comments, you need to log in
How to add emoji to the database?
It is necessary to add text containing emoji emoticons to the database.
I tried this:
$str='<p>Текст с emoji. Еще текст</p>'; //Вместо emoji должен быть смайл
$res = $db->prepare("INSERT INTO `table` (`str`) VALUES (:str)");
$res->bindParam(":str", $str, PDO::PARAM_STR, 60);
$res->execute(); //В базе сохранится строка "<p>Текст с "
htmlentities();
, but there is no result. Emoji remain untouched. Answer the question
In order to leave comments, you need to log in
You can add this image with :before, give absolute positioning like the black checkbox, and give the image a z-index greater than the checkbox.
Then the picture will be on top of the black flag
You cannot make an image that goes beyond the block using the background. Only to have a separate element, and to position.
Yuri Chernyshev => Just fixing the table column encoding to utf-8mb4 had no effect
I added emoticons to the database according to this principle.
There is a smiley with such unicode U+1F600
Then I specify in the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question