<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akihito_sado</author_name>
  <author_url>https://blog.hatena.ne.jp/akihito_sado/</author_url>
  <blog_title>SEブログ</blog_title>
  <blog_url>https://akihito-sado.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>MySQL</anon>
  </categories>
  <description>PHPで絞り込み検索キーワードをSQL分に反映 検索サイトでは下記のように、キーワードに空白を区切って、データを絞り込むようなものが多いと思います。 スペースで区切られた検索キーワードを基に、SQL文を発行します。以下は、組み立てられたSQL文をweb上に表示させているだけです。実際には、DBに検索するような形になります。まあこんな検索なんてないですけど。SQL構文はなんでもよかったんで気にせず。explode関数で単語を分割し、分割された単語の分だけwhere句に条件を足していきます。 &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;?php //POST送信されたデータを$tex…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakihito-sado.hatenadiary.org%2Fentry%2F20120602%2Fp1&quot; title=&quot;PHPで空白区切りの絞り込み検索キーワードをSQL文に反映 - SEブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/akihito_sado/20120602/20120602220146.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-06-02 00:00:01</published>
  <title>PHPで空白区切りの絞り込み検索キーワードをSQL文に反映</title>
  <type>rich</type>
  <url>https://akihito-sado.hatenadiary.org/entry/20120602/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
