Issue with wpdb->prepare
-
Hi,
I noticed that I have an issue with a search method I was using and took me a while to notice that actually preparing the LIKE input string is causing an issue. I am using the following method
$wpdb->prepare(‘%s’, ‘%blabla%’)
which gives me something like this:
‘{c4b7b43cbc69ed8d327048c2314762a3bd3d02a502d3c40a16850e2fdb0a0b0b}blabla{c4b7b43cbc69ed8d327048c2314762a3bd3d02a502d3c40a16850e2fdb0a0b0b}’
According to the documentation I am supposed to get the following: ‘%blabla%’.
Please help.
Thank you in advance.
Ivan
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issue with wpdb->prepare’ is closed to new replies.