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 

datas from mysql in irc chan!

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
philipp
Voice


Joined: 10 Jan 2007
Posts: 2

PostPosted: Wed Jan 10, 2007 3:20 pm    Post subject: datas from mysql in irc chan! Reply with quote

hey gays! sry for my bad english Smile


so we have a mysql data base which is build like that!



now we would like to input in the irc channel

!player gentleman

so the bot should connect du the db (showed at the pictur) of the tool and search throught the part which is calles "spielernamen" and if the input in the channel is found in spielernamen so the coordinates will be past and if in the same row "mond" = 1 then it should be postet in the channel like that:

"gentleman; 2:420:11 M,"
^ ^ ^
spielername;coordinates;mond yes/no

the next problem is if the tool found one it should not stop searching! because there can be 9 "coordinates" per "spielernamen"!

I hope i could told all my problems if there are questions you ask me please
Back to top
View user's profile Send private message
philipp
Voice


Joined: 10 Jan 2007
Posts: 2

PostPosted: Tue Jan 16, 2007 1:09 pm    Post subject: Reply with quote

why nobody help me *cry*
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jan 16, 2007 3:38 pm    Post subject: Reply with quote

Bumping generally won't help.
Had a look at dbsearch.tcl? Think it would be quite possible to modify the queries in it to suite your needs...
Might also wish to search in the tcl archive..

And please, don't post such huge images, when the information (database, table, and field-names) could've easily been written on a single line of text.

As for your issue with multiple hits, with a proper sql-query it would merely be an issue of repeatedly picking a row from the result-set and posting, until the result-set is depleted..
_________________
NML_375, idling at #eggdrop@IrcNET
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 -> Script Requests 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