There is a database Serials in it the id and name_serial fields are filled with this value.

id name_serial 648 Любовь/Ненависть 

I write such a request

 SELECT * FROM `fl_serial` WHERE `name_serial` = 'Любовь/Ненависть' 

I get this answer

 MySQL вернула пустой результат (т.е. ноль строк). 

why and how to fix it

  • one
    1. Missed the closing apostrophe 2. there is a feeling that there are end / initial problems in the line. - Dmitriy Simushev
  • @Doofy I still need to clean mysql Request to issue. I didn’t write anything about php - Sergalas
  • @DmitriySimushev corrected the quotes simply not copied from the request and what is the end of the initial problems. - Sergalas
  • Fields are filled in the table, not in the database. What is your table name? The query must be: SELECT FROM * (table name) - humster_spb
  • WHERE name_serial LIKE 'Любовь/Ненависть' Will output something? - ilyaplot

1 answer 1

Use string comparison functions, such as LIKE. Your request will look like this.

 SELECT * FROM `fl_serial` WHERE `name_serial` LIKE 'Любовь/Ненависть' 
  • The key question is why LIKE works, and = does not. - Dmitriy Simushev