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

	<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>2004-02-26T15:49:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Neomaster]]></name></author>
		<updated>2004-02-26T15:49:44-04:00</updated>

		<published>2004-02-26T15:49:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34020#p34020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34020#p34020"/>
		<title type="html"><![CDATA[MySQL Update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34020#p34020"><![CDATA[
<blockquote class="uncited"><div>u have<br><div class="codebox"><p>Code: </p><pre><code>package require sql </code></pre></div>I need to write a tcl script that uses mysql too and Im guessing this is the first place to start.. where can I get this package to install on my server?<br><br>Cheers</div></blockquote>Yeah... where could we get it??<br><br>I have Msql , MySql , Tcl8.4 , MysqlTcl , but still missing that "sql" package...<br><br>package require sql<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4603">Neomaster</a> — Thu Feb 26, 2004 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-15T15:34:30-04:00</updated>

		<published>2004-01-15T15:34:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32544#p32544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32544#p32544"/>
		<title type="html"><![CDATA[MySQL Update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32544#p32544"><![CDATA[
u have<br><div class="codebox"><p>Code: </p><pre><code>package require sql </code></pre></div>I need to write a tcl script that uses mysql too and Im guessing this is the first place to start.. where can I get this package to install on my server?<br><br>Cheers<p>Statistics: Posted by Guest — Thu Jan 15, 2004 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-01-15T13:16:10-04:00</updated>

		<published>2004-01-15T13:16:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32542#p32542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32542#p32542"/>
		<title type="html"><![CDATA[MySQL Update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32542#p32542"><![CDATA[
it's more than a typo, it's an important prefix <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=691">CrazyCat</a> — Thu Jan 15, 2004 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-15T09:47:12-04:00</updated>

		<published>2004-01-15T09:47:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32531#p32531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32531#p32531"/>
		<title type="html"><![CDATA[MySQL Update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32531#p32531"><![CDATA[
thx!!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>what a simple typo can do  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Thu Jan 15, 2004 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-01-15T08:16:03-04:00</updated>

		<published>2004-01-15T08:16:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32528#p32528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32528#p32528"/>
		<title type="html"><![CDATA[MySQL Update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32528#p32528"><![CDATA[
change incr $aantal to incr aantal<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Jan 15, 2004 8:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-15T03:53:44-04:00</updated>

		<published>2004-01-15T03:53:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32521#p32521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32521#p32521"/>
		<title type="html"><![CDATA[MySQL Update script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32521#p32521"><![CDATA[
I've got the following script. The idea is to put this on the end of a proc and so, count the number of times, the script has been used.<br><br>Table layout: id, commando, aantal (where aantal is the field which I want to update)<br><br>Table has 1 (test) row: id=1, commando=!test, aantal=0<br><div class="codebox"><p>Code: </p><pre><code>proc user {nick host hand chan text} { package require sql set conn [sql connect $host $user $pwd] set res [catch {sql selectdb $conn $db} msg] set output [sql query $conn "SELECT MAX(aantal) FROM nROServ WHERE commando LIKE '!test'"] set row [sql fetchrow $conn $output] set aantal $row putlog "$aantal" incr $aantal set omhoog [sql exec $conn "UPDATE nROServ SET aantal = '$aantal' WHERE commando LIKE '!test'"] sql disconnect $conn}</code></pre></div>But when I run the script, I get the following error:<br>Tcl error [user]: can't read "0": no such variable<br><br>The error might be the <em class="text-italics">incr $aantal</em> but I don't know for sure.<br><br>Could someone advice me what to do?<br><br>thx<br><br>Chrizz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Thu Jan 15, 2004 3:53 am</p><hr />
]]></content>
	</entry>
	</feed>
