Re: MYSQL DB not showing uft8 on php page
Posted by: Peter Brawley
Date: January 16, 2020 12:22AM

> $conn = @mysql_connect("localhost", "user", "pass");

Wrong API. You need to use the mysqli API.

> mysql_select_db("dabab1");

As above.

> $mysqli -> set_charset("utf8");

Won't work because the connection as above is mysql not mysqli.

Options: ReplyQuote


Subject
Views
Written By
Posted
343
January 14, 2020 08:01PM
152
January 15, 2020 12:25AM
148
January 15, 2020 09:57PM
154
January 15, 2020 10:52PM
160
January 15, 2020 11:01PM
Re: MYSQL DB not showing uft8 on php page
157
January 16, 2020 12:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.