-1

In my database I have DONT word..

In database it is stored like this:DÕNT Due to that Õ the data is not coming..!

How can i retrive that..? This my code of retrive:

htmlspecialchars($res_get_option['answer']);

Collation: Null and Type: MyISAM

Palindromer
  • 854
  • 1
  • 10
  • 29
Mr world wide
  • 4,696
  • 7
  • 43
  • 97

1 Answers1

1

You will need to set right collation for database and update wrong characters, with right ones, using a script for this.

Оzgur
  • 432
  • 2
  • 10
  • @Ozgur okay what is that script..? and what do i need to update in collation..? – Mr world wide Apr 08 '17 at 19:30
  • @AbdulWaheed Script must be written, which selects all rows, replacing characters using str_replace function and finally updates all rows – Оzgur Apr 08 '17 at 19:36
  • can you please write that here for me that is what im not getting it.. and what do i need to update in collation @ozgur – Mr world wide Apr 08 '17 at 19:38
  • @AbdulWaheed how many rows will be updated? If it's not much, it can be done manually using phpmyadmin – Оzgur Apr 08 '17 at 20:11