Mysql AND operator problem in PHP

0

I have this query that works perfectly in MySQL:

select maestro from destajosetapas WHERE idetapa = '18' AND iddestajo='15241'

By collecting the results PHP gives me NULL , but if I put:

select maestro from destajosetapas WHERE idetapa = '18'

PHP returns results without problem. It should be noted that my query is within a foreach which already changed for all available cycles and the problem continues, this query igualita I do it in other files and php allows me to collect results, I do not understand because using the AND does not work!

    
asked by Martin 19.04.2018 в 23:00
source

0 answers