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

	<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-04-30T21:25:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-30T21:25:08-04:00</updated>

		<published>2007-04-30T21:25:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72407#p72407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72407#p72407"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72407#p72407"><![CDATA[
I got it now thanks for the script, works fine.<br><br>The problem was that the updater said I got the newest version, but that was not correct.<br><br>I deinstalled the current version and installed a new fresh 3.02 now. Strange with this update thing but it works now <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=8354">Psyfire</a> — Mon Apr 30, 2007 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-04-27T21:18:38-04:00</updated>

		<published>2007-04-27T21:18:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72309#p72309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72309#p72309"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72309#p72309"><![CDATA[
Well, that error you reported above, does indicate that your module is either broken, or you've failed to load it properly.<br>You could always check your other scripts, that you say are working, for hints on what you'd have to change to make it work..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Apr 27, 2007 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-27T19:21:36-04:00</updated>

		<published>2007-04-27T19:21:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72306#p72306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72306#p72306"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72306#p72306"><![CDATA[
I am running definitly 3.02.<br><br>The module is loaded of course, otherwise my other mysql scripts wont work and they work 100%.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Fri Apr 27, 2007 7:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-04-27T10:24:03-04:00</updated>

		<published>2007-04-27T10:24:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72293#p72293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72293#p72293"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72293#p72293"><![CDATA[
Simply... if you've got mysqltcl v3.0, the ::mysql::query command should be available (obviously assuming you've loaded the module properly...)<br>If you're using any other version, it would be mysqlquery.<br>Since you failed to mention which version of mysqltcl you're using, I can't tell which syntax would be proper for you...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Apr 27, 2007 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-27T08:33:08-04:00</updated>

		<published>2007-04-27T08:33:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72290#p72290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72290#p72290"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72290#p72290"><![CDATA[
Building Dependency Tree... Done <br>mysqltcl is already the newest version. <br>0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.<br><br>And now? I got the last version...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Fri Apr 27, 2007 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-04-25T15:45:39-04:00</updated>

		<published>2007-04-25T15:45:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72252#p72252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72252#p72252"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72252#p72252"><![CDATA[
Then you're using an older version of mysqltcl. The main difference is older version uses command-names such as mysqlquery while the newer uses namespaces, ie ::mysql::query.<br><br>In any case, the docs on their webpage should be enough to atleast get you started...<br>A good place to start would be the mysqlsel command...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Apr 25, 2007 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-25T12:54:33-04:00</updated>

		<published>2007-04-25T12:54:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72250#p72250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72250#p72250"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72250#p72250"><![CDATA[
Tcl error [srh_top]: invalid command name "::mysql::query"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Wed Apr 25, 2007 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[w00f]]></name></author>
		<updated>2007-04-25T16:17:56-04:00</updated>

		<published>2007-04-25T11:33:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72248#p72248</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72248#p72248"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72248#p72248"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## CONF ### trigger to search top10set srch(top10) "!top10"# SQL infoset sql(host) "IP"set sql(user) "USER"set sql(pass) "PASS-BLA"set sql(db) "DATABASE-NAME"set sql(port) "PORT"## END CONF ##package require mysqltclbind pub - $srch(top10) srh_topproc srh_top {nick host hand chan arg} {global sqlset sql(handle) [mysqlconnect -host $sql(host) -user $sql(user) -password $sql(pass) -db $sql(db) -port $sql(port)]set query [::mysql::query $sql(handle) "SELECT ps_plr.plrid, ps_plr.uniqueid, ps_plr.rank, ps_plr.skill, ps_plr_profile.name FROM ps_plr, ps_plr_profile WHERE allowrank =1 AND ps_plr.uniqueid = ps_plr_profile.uniqueid ORDER BY skill DESC LIMIT 10"]while {[set row [::mysql::fetch $query]] != ""} {set plrid [lindex $row 0]set id [lindex $row 1]set rank [lindex $row 2]set skill [lindex $row 3]set name [lindex $row 4]putquick "PRIVMSG $chan :\00314\002\[\017\002#$rank\00314\]\002\00314 ~ \002\00307Player\017: $name \00314~\017 \002\00307Skill\017: $skill \00314~\002\00307 iD\017: $id \00314~\002\00307 PLRiD\017: $plrid "}::mysql::endquery $querymysqlclose $sql(handle)}putlog "Top10.tcl loaded"</code></pre></div>didn't tested , but think its ok<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8264">w00f</a> — Wed Apr 25, 2007 11:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-24T12:51:19-04:00</updated>

		<published>2007-04-24T12:51:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72236#p72236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72236#p72236"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72236#p72236"><![CDATA[
I use mysqltcl in my script but I dont know how to create a list that ouputs that data.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Tue Apr 24, 2007 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-04-24T08:31:59-04:00</updated>

		<published>2007-04-24T08:31:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72231#p72231</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72231#p72231"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72231#p72231"><![CDATA[
You'll probably have to use the <a href="http://www.xdobry.de/mysqltcl/" class="postlink">mysqltcl</a> interface, or something similar. If you use mysqltcl, the documentation is available on their homepage.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Apr 24, 2007 8:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-04-23T20:33:34-04:00</updated>

		<published>2007-04-23T20:33:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72227#p72227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72227#p72227"/>
		<title type="html"><![CDATA[Get a list of a mysql select]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72227#p72227"><![CDATA[
Hello,<br><br>if I type this in phpmyadmin console:<br><div class="codebox"><p>Code: </p><pre><code>SELECT ps_plr.plrid, ps_plr.uniqueid, ps_plr.rank, ps_plr.skill, ps_plr_profile.nameFROM ps_plr, ps_plr_profileWHERE allowrank =1AND ps_plr.uniqueid = ps_plr_profile.uniqueidORDER BY skill DESCLIMIT 10 </code></pre></div>I get this list:<br><div class="codebox"><p>Code: </p><pre><code>710  STEAM_0:1:1889849  1  1963.16  ()()7803 STEAM_0:1:12916169 2 1945.60 brasil_fr.953 STEAM_0:1:859266 3 1881.20 SriQst iZ qL50 STEAM_0:1:11381583 4 1848.65 Uncle902 STEAM_0:0:14033485 5 1842.98 The Prophet976 STEAM_0:1:14352136 6 1834.15 w0ll4k800 STEAM_0:0:3850505 7 1815.94 EmBri0.Iceman &lt;AdemA&gt;1001 STEAM_0:1:72535 8 1815.44 busheteeeeeeeeeeeee944 STEAM_0:1:12625835 9 1781.13 yohan736 STEAM_0:1:10075317 10 1757.44 JaNoVsKi</code></pre></div>Thats my output of the select. Now I want to implement this list via a /top10 command in a tcl script.<br><br>The problem is, that I dont know how to get this list with this all variables. Can somebody help me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Mon Apr 23, 2007 8:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
