You are here: Re: sprintf need help with this one stuck « All PHP « IT news, forums, messages
Re: sprintf need help with this one stuck

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация