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

	<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>2010-10-20T14:11:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DJFelipe]]></name></author>
		<updated>2010-10-20T14:11:37-04:00</updated>

		<published>2010-10-20T14:11:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94814#p94814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94814#p94814"/>
		<title type="html"><![CDATA[mysqlendquery problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94814#p94814"><![CDATA[
Hi There...<br><br>My eggdrop says to me that 'mysqlendquery: not mysqltcl handle'<br><br>But i cannot find the error...<br><div class="codebox"><p>Code: </p><pre><code>proc proc_checkfornews {} {  global db_handle madsadminchan madspubchan dbhost dbuser dbpass dbname  if {[mysqlping $db_handle] != 1} {    putlog "Mysql seems to be gone... trying to reestablish the connetion..."    if {[catch {set db_handle [mysqlconnect -host $dbhost -user $dbuser -password $dbpass -db $dbname]} errmsg]} {      putserv "PRIVMSG $madsadminchan :Scriptfehler! $errmsg"    }  }  putlog "Checking for new Newspostings..."                                                          set sql "SELECT id, channel, text FROM postbot2 ORDER BY id ASC LIMIT 1;"  putlog "SQLDEBUG-&gt; $sql"  set result [mysqlquery $db_handle $sql]  while {[set res [mysqlnext $result]] != ""} {  putserv "PRIVMSG [lindex $res 1] :[lindex $res 2]"    set sql2 "DELETE FROM postbot2 WHERE postbot2.id = [lindex $res 0] LIMIT 1"    putlog "SQLDEBUG-&gt; $sql2"    set result2 [mysqlquery $db_handle $sql2]    mysqlendquery $result2  }  mysqlendquery $result  utimer 10 proc_checkfornews}   </code></pre></div>[Edit] Script updated but the error is still there..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11397">DJFelipe</a> — Wed Oct 20, 2010 2:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
