Okay,
After a few days of wondering what could have happened, I had an interesting idea : write the resulting query in a text file instead of displaying it on the document. And that’s what gave me the solution : I was using a placeholder of my template as parameter for my query, but when the query is sent to the mysql server, the placeholder was still not replaced, but it was well when I displayed it on the web page.
I’m not sure everything is clear, so this could maybe help to understand :
- I made a plugin who fills some placeholders in my web pages.
- In my template, I called my snippet with something like [!mySnippet? ¶m=`[+placeholder+]`!]
- The query sent to mysql (and written in my text file but not on the web page) was "SELECT ..... where idFilm="[+placeholder+]" ....
Thanks to everybody which had a look at my problem.
Hope this could help someone else
R.