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

	<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>2006-05-11T11:01:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-05-11T11:01:08-04:00</updated>

		<published>2006-05-11T11:01:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62932#p62932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62932#p62932"/>
		<title type="html"><![CDATA[[MySQL] Join several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62932#p62932"><![CDATA[
Thanks! But it only displays one channel .. there are 2 channels in the database. But it displays 1 channel!! Better than nothing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Do you know how to display all channels which are in the database ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Thu May 11, 2006 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2006-05-11T10:33:01-04:00</updated>

		<published>2006-05-11T10:33:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62930#p62930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62930#p62930"/>
		<title type="html"><![CDATA[[MySQL] Join several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62930#p62930"><![CDATA[
try:<br><div class="codebox"><p>Code: </p><pre><code>foreach res [mysqlsel $mysql(conn) "SELECT name FROM channels" -list] { }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Thu May 11, 2006 10:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-05-10T19:05:32-04:00</updated>

		<published>2006-05-10T19:05:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62895#p62895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62895#p62895"/>
		<title type="html"><![CDATA[[MySQL] Join several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62895#p62895"><![CDATA[
Hi everybody,<br><br>I have been working with mysqltcl for a few days now, but I just can't get it done! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><br>What I am looking for, is that the bot join several channels which are in a MySQL database. The table is called channels. It has 2 elements: ID and NAME. Name is the name of the channel.<br><br>Which one of you can write a script with use of mysqltcl that he joins the channels which are in the database? I just can't get it done.<br><br>Thanks alot! I would really appreciate it:<br><br>Greetings, T-Xorcist<br><br>PS: I had this script:<div class="codebox"><p>Code: </p><pre><code>set mysql(conn) [mysqlconnect -user mysqluser -db tbot -password xxxxxx]foreach res [mysqlsel $mysql(conn) {select name from channels} -flatlist] {  channel add $res  putquick "JOIN :$res"}mysqlclose $mysql(conn)</code></pre></div>But it only joins one channel out the database.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Wed May 10, 2006 7:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
