Argggh...API Errors

For discussion of the Poker Mavens server module and other administration topics

Argggh...API Errors

Postby fstetson » Wed Jan 19, 2011 2:00 pm

no matter what I do, I keep getting these error messages: This was for new users list;


include "API.php"; // API $url and $pw values set here // Fetch the list of players using the AccountsList API command. $params = "Password=" . $pw . "&Command=AccountsList&Fields=Player,Logins"; $api = Poker_API($url,$params,true); $result = $api["Result"]; if ($result == "Error") die("Error: " . $api["Error"]); // iterate through list for ($i=1; $i<=$api["Accounts"]; $i++) { if (($api["Logins" .$i] <= 10)) { echo '
'; echo $api["Player" .$i] .'
'; } } ?>
fstetson
 
Posts: 33
Joined: Mon Jan 18, 2010 11:03 pm

Re: Argggh...API Errors

Postby Kent Briggs » Wed Jan 19, 2011 2:28 pm

You didn't list what the error was and your code was posted as all one continuous line and is very hard to read.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3936
Joined: Wed Mar 19, 2008 8:47 pm

Re: Argggh...API Errors

Postby fstetson » Fri Jan 21, 2011 8:51 am

Resolved this one...operator error, of course. I posted a new thread with more specific issues outlined.
fstetson
 
Posts: 33
Joined: Mon Jan 18, 2010 11:03 pm


Return to Site Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron