Reply to Re: SELECT Syntax Question

Your name:

Reply:


Posted by pokeski on 08/24/07 16:17

On Aug 24, 11:13 am, "J.O. Aho" <u...@example.net> wrote:
> poke...@gmail.com wrote:
> > hi, maybe someone can answer this --- please,
>
> > $sql_query = "SELECT * FROM table WHERE some_thingdata =
> > '$some_partofit'";
>
> > can a SELECT statement such as above be crafted, that basically
> > searches the "some_thingdata" for only part of the stringdata in
> > there?
>
> > That would be cool if someone can show me how that can be done. :-)
>
> > Thank you!
>
> $query="SELECT * FROM table WHERE some_thingdata LIKE '%{$some_partofit}%'";
>
> --
>
> //Aho

Wow, very good thank you! :-) Have a great day!~~~~

[Back to original 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

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