| View previous topic :: View next topic |
| Author |
Message |
philipp Voice
Joined: 10 Jan 2007 Posts: 2
|
Posted: Wed Jan 10, 2007 3:20 pm Post subject: datas from mysql in irc chan! |
|
|
hey gays! sry for my bad english
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 |
|
 |
philipp Voice
Joined: 10 Jan 2007 Posts: 2
|
Posted: Tue Jan 16, 2007 1:09 pm Post subject: |
|
|
| why nobody help me *cry* |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Jan 16, 2007 3:38 pm Post subject: |
|
|
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 |
|
 |
|