Hello all. I am trying to get a list of players that I have 3K+ hands on, and exactly how many hands I have on them, into a text file using postresfunctions.ahk from overcards.com. For the life of me, I cannot get this to work. I don't suppose you all can tell me what is wrong with my query... I have made sure that all the info in the postgresfunctions file is correct, including the DB name. The text file that is created just shows up blank.
[code53h]sql := "SELECT p.player_name, COUNT(hhps.id_player) AS hands FROM player p, holdem_hand_player_statistics hhps WHERE p.id_player = hhps.id_player GROUP BY p.player_name HAVING COUNT(hhps.id_player) > 3000 ORDER BY COUNT(hhps.id_player) DESC;"
;//The rest of this is just AHK stuff, and I'm pretty sure the problem is in the query...
result := psql(sql)
desktoppath:="C:\Documents and Settings\Owner\desktop\"
FileAppend, %result%, %desktoppath%%A_Now%.txt
[/code53h]
