Posted by Andy Hassall on 08/20/06 14:15
On Sun, 20 Aug 2006 09:36:11 -0400, "news.cogeco.ca" <realtime158@hotmail.com>
wrote:
>Here is my code below and I am currently have php version 4.4.4 installed.
>
>$SQL="Select field1 from table where field1 like '%%%1\$s%%'";
>$Str='Bob';
>
>sprintf($SQL, $Str);
>
>The sprintf doesn't like the %% double percent signs to use it in a like
>statment any ideas?
What do you mean it "doesn't like" it? Do you get error messages? Unexpected
results? Be more specific.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|