What I am trying to do is get sprintf to see % as a charector and not look for more input.
Here is the code that is problematic
$dynamicquery=($dynamicquery . " AND M.title LIKE '%%s%' ");
$dynamicquery=sprintf($dynamicquery, $title);
I have also tried to get it to work as follows
LIKE '%s' ");
$title = '%' . $title . '%';
Now eventually this is going into a postgres
sql Query with a Like statement with wildcards before and after a user inputed text.The query works fine at the psql prompt but I cannot get sprintf to accept this or figure out how to get sprint to just print out the needed percent signs.
Thanks in Advance.