| View previous topic :: View next topic |
| Author |
Message |
jim1568 Voice
Joined: 09 Sep 2008 Posts: 1
|
Posted: Fri Sep 19, 2008 12:46 am Post subject: help with mysqltcl |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Sep 19, 2008 8:22 am Post subject: Re: help with mysqltcl |
|
|
| 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 |
|
 |
|