<?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/18864" />

	<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>2012-03-03T19:28:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2012-03-03T18:43:24-04:00</updated>

		<published>2012-03-03T18:43:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98927#p98927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98927#p98927"/>
		<title type="html"><![CDATA[[SOLVED] count url]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98927#p98927"><![CDATA[
Thanks nml375 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Did it like this :<div class="codebox"><p>Code: </p><pre><code>#Urlset sqlsiteurl "SELECT COUNT(DISTINCT(siteurl)) FROM pred"set siteurl [mysqlsel $mysql_(handle) $sqlsiteurl -flatlist]</code></pre></div>and returned 715 urls <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Mar 03, 2012 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-03-03T18:28:59-04:00</updated>

		<published>2012-03-03T18:28:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98926#p98926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98926#p98926"/>
		<title type="html"><![CDATA[[SOLVED] count url]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98926#p98926"><![CDATA[
Johannes13, since there are no variable substitutions within the query of the posted code, I don't see the relevance of sql injections.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 03, 2012 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Johannes13]]></name></author>
		<updated>2012-03-03T18:23:55-04:00</updated>

		<published>2012-03-03T18:23:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98925#p98925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98925#p98925"/>
		<title type="html"><![CDATA[[SOLVED] count url]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98925#p98925"><![CDATA[
sql injection ftw. Make sure you escape the user given variables<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11381">Johannes13</a> — Sat Mar 03, 2012 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-03-03T17:38:48-04:00</updated>

		<published>2012-03-03T17:38:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98924#p98924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98924#p98924"/>
		<title type="html"><![CDATA[[SOLVED] count url]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98924#p98924"><![CDATA[
Well, that'd depend on the database structure and contents, as well as the expected results...<br>Anyhow...<div class="codebox"><p>Code: </p><pre><code>SELECT COUNT(DISTINCT(siteurl))</code></pre></div>Return the number of unique siteurl's from the filtered set.<div class="codebox"><p>Code: </p><pre><code>WHERE siteurl='siteurl'</code></pre></div>Filter the results to only return rows where the field siteurl is equal to the string "siteurl".<br><br>If you expect this to return anything other than 0 or 1, then you need to rethink your query.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 03, 2012 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2012-03-03T19:28:22-04:00</updated>

		<published>2012-03-03T17:16:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98923#p98923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98923#p98923"/>
		<title type="html"><![CDATA[[SOLVED] count url]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98923#p98923"><![CDATA[
what is wrong here :<br><div class="codebox"><p>Code: </p><pre><code>#Urlset sqlsiteurl "SELECT COUNT(DISTINCT(siteurl)) FROM home WHERE siteurl='siteurl'"set siteurl [mysqlsel $mysql_(handle) $sqlsiteurl -flatlist]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Mar 03, 2012 5:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
