I try to select a specific data in a field of the database, in this case I have a field that is called idDepto
and it has stored the values 3,4,5,6,7,8
but when executing the query:
$sql = "SELECT Correo, idDepto, Notificacion
FROM notificaciones
WHERE FIND_IN_SET = " . $_POST['id_depto'] . ",idDepto";
At the time of executing the previous query no results appear, and well I decided to use find_in_set because I work well in MySQL, this query is executed in MySQL and if you throw me the results.
SELECT 'Correo', 'idDepto', 'Notificacion'
FROM 'notificaciones'
WHERE FIND_IN_SET(5, idDepto)