<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: How to save search queries on Google Custom Search Engine</title>
	<atom:link href="http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/</link>
	<description>A web developer's blog: languages, search engines, servers.</description>
	<lastBuildDate>Mon, 06 Sep 2010 02:59:37 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tejas Ramakrishnan</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-70456</link>
		<dc:creator>Tejas Ramakrishnan</dc:creator>
		<pubDate>Sat, 03 Jul 2010 23:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-70456</guid>
		<description>Hello sir,
I want to know how to view the stored results later....</description>
		<content:encoded><![CDATA[<p>Hello sir,<br />
I want to know how to view the stored results later&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernando</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-67901</link>
		<dc:creator>Fernando</dc:creator>
		<pubDate>Sat, 24 Apr 2010 21:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-67901</guid>
		<description>Hello
I can not use php, please show me the code you use to display related adsense and post to those who enter by Google

Thank you very much</description>
		<content:encoded><![CDATA[<p>Hello<br />
I can not use php, please show me the code you use to display related adsense and post to those who enter by Google</p>
<p>Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guardar resultados de busqueda de Google CSE</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-66356</link>
		<dc:creator>Guardar resultados de busqueda de Google CSE</dc:creator>
		<pubDate>Sun, 07 Mar 2010 01:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-66356</guid>
		<description>[...] encontré una solución, rápida y efectiva de hacer esto, utilizando una base de datos para guardar las busquedas [...]</description>
		<content:encoded><![CDATA[<p>[...] encontré una solución, rápida y efectiva de hacer esto, utilizando una base de datos para guardar las busquedas [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to save search queries on Google Custom Search Engine &#171; Green Pages</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-66094</link>
		<dc:creator>How to save search queries on Google Custom Search Engine &#171; Green Pages</dc:creator>
		<pubDate>Fri, 26 Feb 2010 22:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-66094</guid>
		<description>[...] Copied from: http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Copied from: <a href="http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/" rel="nofollow">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-62534</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 12 Dec 2009 00:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-62534</guid>
		<description>I want to save users search queries from CSE in my Hotel Blogger blog for analysis - can that be done from Blogger? As I want to try write content related to search queries and also create refinements/labels/customization based around CSE search queries. Thanks...</description>
		<content:encoded><![CDATA[<p>I want to save users search queries from CSE in my Hotel Blogger blog for analysis &#8211; can that be done from Blogger? As I want to try write content related to search queries and also create refinements/labels/customization based around CSE search queries. Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessio</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-33630</link>
		<dc:creator>Alessio</dc:creator>
		<pubDate>Thu, 24 Jul 2008 08:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-33630</guid>
		<description>Ciao Maurizio
scusa se scrivo in italiano sul tuo blog.
Ho installato il tuo script ma ricevo questo errore

Parse error: syntax error, unexpected T_STRING in /home/alefotoi/domains/odontotecnico.info/public_html/index.html on line 68 

la riga e&#039; questa

$insertquery = “INSERT INTO `query` ( `query` , `datetime`) VALUES ( ‘$querystat’ , ‘$datetime’);”;


Qualche aiuto?</description>
		<content:encoded><![CDATA[<p>Ciao Maurizio<br />
scusa se scrivo in italiano sul tuo blog.<br />
Ho installato il tuo script ma ricevo questo errore</p>
<p>Parse error: syntax error, unexpected T_STRING in /home/alefotoi/domains/odontotecnico.info/public_html/index.html on line 68 </p>
<p>la riga e&#8217; questa</p>
<p>$insertquery = “INSERT INTO `query` ( `query` , `datetime`) VALUES ( ‘$querystat’ , ‘$datetime’);”;</p>
<p>Qualche aiuto?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Google blog&#187; Архив блога &#187; Here&#8217;s some love for our Custom Search friends</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-28278</link>
		<dc:creator>Google blog&#187; Архив блога &#187; Here&#8217;s some love for our Custom Search friends</dc:creator>
		<pubDate>Tue, 15 Apr 2008 04:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-28278</guid>
		<description>[...] How to save search queries on Google Custom Search Engine [...]</description>
		<content:encoded><![CDATA[<p>[...] How to save search queries on Google Custom Search Engine [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-2874</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 21 Mar 2007 23:27:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-2874</guid>
		<description>Thanks for the code, Maurizio! I used the modified version and it works great....</description>
		<content:encoded><![CDATA[<p>Thanks for the code, Maurizio! I used the modified version and it works great&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maurizio Petrone</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-489</link>
		<dc:creator>Maurizio Petrone</dc:creator>
		<pubDate>Mon, 20 Nov 2006 18:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-489</guid>
		<description>Mike, you may put it just after the G&#039;le code that shows results: it works for me.
&lt;hr /&gt;
&lt;b&gt;UPDATE&lt;/b&gt; Seems that from yesterday that in CSE, when you run a search, referer url is forwarded *everytime*.
&lt;em&gt;If you find that no query is saved, try to change this line:&lt;/em&gt;
&lt;code&gt;if( ($_SERVER[&#039;HTTP_REFERER&#039;] == &#039;&#039;) AND ( ($querystat != $_SESSION[&#039;prev_search&#039;]) OR ( ($datetime - $_SESSION[&#039;datetime&#039;]) &gt; 60) ) ) {&lt;/code&gt;

with the following:

&lt;code&gt;if( ($querystat != $_SESSION[&#039;prev_search&#039;]) OR ( ($dataora - $_SESSION[&#039;dataora&#039;]) &gt; 60) ) {&lt;/code&gt;
This will save right every query with - No Care if it was submited manually or generated from a direct link to that search.

I&#039;m still working-around in my CSE, &lt;a href=&quot;http://groups.google.com/group/google-co-op/browse_thread/thread/b1a2d07eb335a7ce&quot; rel=&quot;nofollow&quot;&gt;keep in touch with this issue on Google Groups&lt;/a&gt; ;)</description>
		<content:encoded><![CDATA[<p>Mike, you may put it just after the G&#8217;le code that shows results: it works for me.</p>
<hr />
<b>UPDATE</b> Seems that from yesterday that in CSE, when you run a search, referer url is forwarded *everytime*.<br />
<em>If you find that no query is saved, try to change this line:</em><br />
<code>if( ($_SERVER['HTTP_REFERER'] == '') AND ( ($querystat != $_SESSION['prev_search']) OR ( ($datetime - $_SESSION['datetime']) > 60) ) ) {</code></p>
<p>with the following:</p>
<p><code>if( ($querystat != $_SESSION['prev_search']) OR ( ($dataora - $_SESSION['dataora']) > 60) ) {</code><br />
This will save right every query with &#8211; No Care if it was submited manually or generated from a direct link to that search.</p>
<p>I&#8217;m still working-around in my CSE, <a href="http://groups.google.com/group/google-co-op/browse_thread/thread/b1a2d07eb335a7ce" rel="nofollow">keep in touch with this issue on Google Groups</a> <img src='http://www.geek-notes.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engine/comment-page-1/#comment-483</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 20 Nov 2006 00:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.geek-notes.com/mysql/33/how-to-save-search-queries-on-google-custom-search-engines/#comment-483</guid>
		<description>If my result page is results.php Where do I put the the second code to this page.</description>
		<content:encoded><![CDATA[<p>If my result page is results.php Where do I put the the second code to this page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
