Jump to content

how to insert on mysql


pedrobcabral

Recommended Posts

Hello I am having some trouble when inserting data from php to mysql database, the accents just don't go.

 

Example with the text "Olá Bragança".

 

- Inserting to database with phpMyAdmin, outputs "Olá Bragança". OK

- Echo from the .php page on the .php page outputs "Olá Bragança" as it is on the form field. OK

- Inserting to database from .php page, outputs "olá ragança". NOT OK.

 

How can I solve this situation? By the way I don't know if this has anything to do with. By I'm from Portugal and my phpMyAdmin Collation is set as "latin1_swedish_ci" as default. And I don't remember having this problems when I got in touch with php some months before.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/57762-how-to-insert-on-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.