egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with mysqltcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
jim1568
Voice


Joined: 09 Sep 2008
Posts: 1

PostPosted: Fri Sep 19, 2008 12:46 am    Post subject: help with mysqltcl Reply with quote

i use mysqltcl for eggdrop to connect my db(in windows)
it always showed this error

Tcl error [ms:groupnukes]: can't read "mysql_(handle)": no such variable

the code as below:


set mysql_(handle) [mysqlconnect -host $mysql_(host) -user $mysql_(user) -password $mysql_(password) -db $mysql_(db)]

anybody can give some advice
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Fri Sep 19, 2008 8:22 am    Post subject: Re: help with mysqltcl Reply with quote

jim1568 wrote:
i use mysqltcl for eggdrop to connect my db(in windows)
it always showed this error

Tcl error [ms:groupnukes]: can't read "mysql_(handle)": no such variable

the code as below:


set mysql_(handle) [mysqlconnect -host $mysql_(host) -user $mysql_(user) -password $mysql_(password) -db $mysql_(db)]

anybody can give some advice

Code:
set ::mysql_(handle) [mysqlconnect -host $::mysql_(host) -user $::mysql_(user) -password $::mysql_(password) -db $::mysql_(db)]


You probably want to consider using global variables instead of local. Notice the use of :: to represent this. Might also want to hide the fact your using it for warez purposes, "groupnukes"...
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber