Hi gys i m working on mysql database using the concept of @Taifun but there is a problem relating the emojies
Whenever i tried to save emojies it shows an errror 400 (screenshot is added) I searched the google and found some ways like using a command to set characters to “utf8mb4 collate utfmb4_bin” (its not full query just hint to that query )
Even after using this queries i m unable to store emojies along with text.
My data type is text where i want to store emojies along with text
If anyone knows then share your idea
Personal suggestion: @Taifun
I think it can be made easy by changing in PHP script., Last night I found a PHP code on stackoverflow that can be used to store emojies in mysql database but unfortunately lost it after that
I’ll try my best to mention that here.
When you upload/store text use web>encod text block and when text got and set label use decode text to solve your issue. See block in below screenshot.
It’s good idea but i want to save data as such
So that i can monitor it in everyway like from my phpMyAdmin and from app too
There are otherways to do like using charset collations i tried but failed to achieve.
Yes i tried it this query executed successfully but when i tried to save emoji it fails again showing error 400
Even after altering the tables with your mentioned query
Thanku for your suggestions these are my secondary choices because emoji data is possible in mysql therefore i want to get the original way of doing this
Yeah i tried that one too
But not working for me
If u dont mind i wll send you the aia in pm so that u can create a new table and try by yourself. May be there was a mistake in my methodology.
In my case query execueted successfully through my app but charracters are not being get add yet.
@Taifun I am already searching on this topic and now got his point
And waiting for your reply please help me if i can solve this problem with some other way like altering the tables becz there are ways to alter tables to made text cloumns to save emojies too
But so far i failed in achieving this goal. And i think u r the only one here who can
I’ll provide my aia if u need, to fix.
I never tried to store emojis in a MySQL table, so I’m unfortunately not the one…
you got some good suggestions… let me suggest you to try these…
Taifun