You are here: Re: SELECT Syntax Question « All PHP « IT news, forums, messages
Re: SELECT Syntax Question

Posted by J.O. Aho on 08/24/07 16:13

pokeski@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

 

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

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