Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted by l0w ( 17 years ago )
on *:TEXT:!test:#: {
 top
 msg $chan || test message. ||
}
alias top {
 echo -a $dll(mysql.dll,Connect,res -huwd server user pw db)
 echo -a $dll(MySQL.dll,Query,res SELECT * FROM test_table ORDER BY label2 ASC)
 var %i = 1 Â
 while (%i < 6) {
  set %search.result $dll(MySQL.dll,FetchRow,res %i)
  if ($gettok(%search.result,1,9)) && ($gettok(%search.result,2,9)) {
   echo -a TEMP: $gettok(%search.result,1,9) - $gettok(%search.result,2,9)
   inc %i
  }
 }
}
Revise this Paste
Parent: 5410
Children: 5414