Hello again,
I was wandering if somebody is nice to post a code of listing the tournements on a webpage
Thank you !
Tournaments list
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Tournaments list
This will display a simple list with the name, buy-in, and status:narayan wrote: I was wandering if somebody is nice to post a code of listing the tournements on a webpage
Code: Select all
<html>
<body>
<?php
include "API.php";
$params = "Password=" . $pw . "&Command=TournamentsList&Fields=Name,BuyIn,EntryFee,Status";
$api = Poker_API($url,$params,true);
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
$n = $api["Tournaments"];
echo "<b>Tournaments Available</b><br>";
for($i=1;$i<=$n;$i++) echo $api["Name".$i] . " (" . $api["BuyIn".$i] . " + " . $api["EntryFee".$i] .
") " . $api["Status".$i] . "<br>";
?>
</body>
</html>
Re: Tournaments list
Perfect, exactly what I needed. Thx