Argggh...API Errors
Posted: 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] .'
'; } } ?>
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] .'
'; } } ?>