<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/14087" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-10-07T19:25:37-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/14087</id>

		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2007-10-07T19:25:37-04:00</updated>

		<published>2007-10-07T19:25:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76467#p76467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76467#p76467"/>
		<title type="html"><![CDATA[Re: mysql search count]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76467#p76467"><![CDATA[
<blockquote class="uncited"><div>If I search someting in the mysql db, after the results it shows someting like:<br><blockquote class="uncited"><div>1 row in set (0.07 sec)</div></blockquote>Is there a way to use that info, so it can be announced in the irc channel?<br><br>What i am looking for is the count of the result that it found and show that in the channel.<br><br>I al ready tried it with:<br><div class="codebox"><p>Code: </p><pre><code>select count(*) from $table WHERE search like '%$search%';</code></pre></div>That works, but if the search is in the db a lot, it is slow. <br>So I thougth way do I need this code if its already shown after the search is done. <br><br>Is this possible? Or maybe some1 else know a better and faster way?<br><br>thanks</div></blockquote>for example: use SELECT (with rows, not count(*)) and then <strong class="text-strong">SELECT FOUND_ROWS()</strong> below to see number of matches. there is more ways how to do that, if i got correctly what you want to do<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Sun Oct 07, 2007 7:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heman]]></name></author>
		<updated>2007-10-07T16:11:39-04:00</updated>

		<published>2007-10-07T16:11:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76461#p76461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76461#p76461"/>
		<title type="html"><![CDATA[mysql search count]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76461#p76461"><![CDATA[
If I search someting in the mysql db, after the results it shows someting like:<br><blockquote class="uncited"><div>1 row in set (0.07 sec)</div></blockquote>Is there a way to use that info, so it can be announced in the irc channel?<br><br>What i am looking for is the count of the result that it found and show that in the channel.<br><br>I al ready tried it with:<br><div class="codebox"><p>Code: </p><pre><code>select count(*) from $table WHERE search like '%$search%';</code></pre></div>That works, but if the search is in the db a lot, it is slow. <br>So I thougth way do I need this code if its already shown after the search is done. <br><br>Is this possible? Or maybe some1 else know a better and faster way?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8556">heman</a> — Sun Oct 07, 2007 4:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
