RecordSet DS and leading zeros

[ad_1]

Hello,

I have a CFF field set as RecordSet DS with a query like this:

SELECT * FROM mytable WHERE codice_2="<%fieldname185%>"

The <%fieldname185%> can contain something like 04848484848.

But the query results are empty when I use the <%fieldname185%> variable and search for something with leading zeros.

If I set a query like this:

SELECT * FROM mytable WHERE codice_2="04848484848"

then, it works.

Perhaps there is a sort of sanitization on th fields? Or leading zero are removed on the fly?

How can I make my query works even with leading zeros values?

TIA

tony

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer