If you have this problem, you should check 4 things. Encoding of tables Open PhpMyAdmin and check whether the database is encoded with utf8mb4_unicode_ci and also all the columns have the same encodign or not Encoding of MySQL If you are on Linux, go to /etc/mysql/my.cnf and add or edit the following: Then restart mysql:…
Category: PHP
How to save PHP object into SESSION variable
If you try to save an object into the $_SESSION variable, you will probably notice this error: __PHP_Incomplete_Class Object This error occurs when an object cannot be serialized and deserialized properly. For this reason, before assigning an object to a session variable, you must serialize it using the function To deserialize it you just have…