<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Search form doesn&amp;apos;t work</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Search-form-doesn-t-work-82329</link>
        <description></description>
        <pubDate>Thu, 12 Mar 2026 22:06:11 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Search-form-doesn-t-work-82329" rel="self" type="application/rss+xml" />

                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245073#post2245073</link>
          <description><![CDATA[<p>Perfect! Thank you so much.</p>]]></description>
          <pubDate>Wed, 30 Sep 2020 14:30:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245073#post2245073</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245072#post2245072</link>
          <description><![CDATA[<p>Try this</p>

<pre class="language-php"><code>$query = @$_REQUEST['query']; // this will hold the keyword

  // load records from 'homepage_insets'
  list($homepage_insetsRecords, $homepage_insetsMetaData) = getRecords(array(
    'tableName'   =&gt; 'homepage_insets',
    'perPage'     =&gt; '10',
    'loadUploads' =&gt; true,
    'allowSearch' =&gt; true,
    'where'       =&gt; " title LIKE '%".mysql_escape($query)."%' OR content LIKE '%".mysql_escape($query)."%' ",
  ));</code></pre>]]></description>
          <pubDate>Wed, 30 Sep 2020 14:28:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245072#post2245072</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245071#post2245071</link>
          <description><![CDATA[<p>I'm afraid not; I'm getting this error message when I run a search:</p>
<p><em>MySQL Error: Unknown column 'title_keyword' in 'where clause'</em></p>
<p><a href="http://wilmotpost.ca/demo/index.php" rel="nofollow">http://wilmotpost.ca/demo/index.php</a></p>]]></description>
          <pubDate>Wed, 30 Sep 2020 14:26:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245071#post2245071</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245070#post2245070</link>
          <description><![CDATA[<p>Yes, it would search only one field. If you know the names of the other fields, you can do something like</p>

<pre class="language-php"><code>$query = @$_REQUEST['query']; // this will hold the keyword

  // load records from 'homepage_insets'
  list($homepage_insetsRecords, $homepage_insetsMetaData) = getRecords(array(
    'tableName'   =&gt; 'homepage_insets',
    'perPage'     =&gt; '10',
    'loadUploads' =&gt; true,
    'allowSearch' =&gt; true,
    'where'       =&gt; " title_keyword LIKE '%".mysql_escape($query)."%' OR content_keyword LIKE '%".mysql_escape($query)."%' ",
  ));</code></pre>
<p>and you can add all the fields you want to search using that format.</p>]]></description>
          <pubDate>Wed, 30 Sep 2020 14:19:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245070#post2245070</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245069#post2245069</link>
          <description><![CDATA[<p>Would this only search one field? i.e. the title field, which contains the headline? I'd like it to search <span><em>author</em>, </span><span><em>content</em>, <em>main_article</em> as well as <em>title</em>.</span></p>]]></description>
          <pubDate>Wed, 30 Sep 2020 14:10:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245069#post2245069</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245068#post2245068</link>
          <description><![CDATA[<p>Disclaimer: I haven't tested this yet.</p>
<pre class="language-markup"><code>&lt;form action="search.php" method="post"&gt;
    &lt;div class="row no-gutters mt-3"&gt;
        &lt;div class="col"&gt;
            &lt;input type="text" name="query"&gt;
            &lt;input type="submit" name="submit" value="Search"&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/form&gt;</code></pre>
<p>After that, on search.php I would change this:</p>
<pre class="language-php"><code>  // load records from 'homepage_insets'
  list($homepage_insetsRecords, $homepage_insetsMetaData) = getRecords(array(
    'tableName'   =&gt; 'homepage_insets',
    'perPage'     =&gt; '10',
    'loadUploads' =&gt; true,
    'allowSearch' =&gt; true,
  ));</code></pre>
<p>to something similar:</p>
<pre class="language-php"><code>$query = @$_REQUEST['query']; // this will hold the keyword

  // load records from 'homepage_insets'
  list($homepage_insetsRecords, $homepage_insetsMetaData) = getRecords(array(
    'tableName'   =&gt; 'homepage_insets',
    'perPage'     =&gt; '10',
    'loadUploads' =&gt; true,
    'allowSearch' =&gt; true,
    'where'       =&gt; " title_keyword LIKE '%".mysql_escape($query)."%' ",
  ));</code></pre>
<p><br />Let me know if that works.</p>]]></description>
          <pubDate>Wed, 30 Sep 2020 13:59:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245068#post2245068</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245067#post2245067</link>
          <description><![CDATA[<p>Hi, Carl.</p>
<p>For some reason, it seems to pick up my last name, as I wrote some of the articles, but it doesn't catch anything else!</p>
<p><a href="http://wilmotpost.ca/demo/search.php?title_keyword%2Ccontent_keyword%2Cmain_article_keyword%2Cauthor_keyword=gordijk&amp;submit=Search" rel="nofollow">http://wilmotpost.ca/demo/search.php?title_keyword%2Ccontent_keyword%2Cmain_article_keyword%2Cauthor_keyword=gordijk&amp;submit=Search</a></p>
<p>I've attached the search results page.</p>]]></description>
          <pubDate>Wed, 30 Sep 2020 13:38:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245067#post2245067</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work after first search</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245066#post2245066</link>
          <description><![CDATA[<p>Hi,<br />Do you have any examples of keywords that do work?  The keywords I tried didn't show any results. Can you share the search.php file? You should use a single word without any commas in your input name and you can use the value from that variable to query the database for any item in your database you wish to query.</p>
]]></description>
          <pubDate>Wed, 30 Sep 2020 13:30:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245066#post2245066</guid>
        </item>
                <item>
          <title>Search form doesn&apos;t work</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245065#post2245065</link>
          <description><![CDATA[<p>I have a search form on my site, which doesn't seem to be picking up some keywords. <a href="http://wilmotpost.ca/demo/index.php" rel="nofollow">http://wilmotpost.ca/demo/index.php</a></p>
<p>Searching for the word "indigenous" doesn't show any results, even though there are clearly at least two articles that contain it. That's just one example, but there are others, too. Any idea what might be causing this, please?</p>
<p>&lt;form action="search.php"&gt;<br />&lt;div class="row no-gutters mt-3"&gt;<br />&lt;div class="col"&gt;<br />&lt;input type="text" name="title_keyword,content_keyword,main_article_keyword,author_keyword" value=""&gt;<br />&lt;input type="submit" name="submit" value="Search"&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;/form&gt;</p>]]></description>
          <pubDate>Wed, 30 Sep 2020 12:39:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245065#post2245065</guid>
        </item>
              </channel>
    </rss>
  