本文整理汇总了PHP中fetchinfo函数的典型用法代码示例。如果您正苦于以下问题:PHP fetchinfo函数的具体用法?PHP fetchinfo怎么用?PHP fetchinfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fetchinfo函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetchinfo
<?php
@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
echo round(fetchinfo("cost", "games", "id", $game), 2);
示例2: fetchinfo
<?php
@(include_once "./set.php");
echo fetchinfo("value", "info", "name", "current_game");
示例3: fetchinfo
<?php
@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
$r = fetchinfo("starttime", "games", "id", $game);
if ($r == 2147483647) {
die("120");
}
$r += 120 - time();
if ($r < 0) {
$r = 0;
}
echo $r;
示例4: fetchinfo
</p>
<div class="count" style="margin-top: 2px;">
<span id="mychance" style="font-size: 25px; color: #f64141;">0%</span>
</div>
</div>
<span id="mychance">Мин. ставка 3$, максимум предметов 15.</span>
<br>
<span id="mychance">Чем выше ставка, тем больше шанс победить.</span>
<img src="./img/arrow.png" width="18" height="58" style="margin-left: 40px; margin-top: -30;">
</div>
</div>
<?php
if (!isset($_SESSION["steamid"])) {
echo '<div id="add_game"><a class="btwn_game" href="?login">' . $msg[$lang]["ingame"] . '!</a></div>';
} else {
$token = fetchinfo("tlink", "users", "steamid", $_SESSION["steamid"]);
if (strlen($token) < 2) {
echo '<div id="add_game"><a class="btwn_game" href="#" onclick="alert2(\'Укажите ссылку для обмена в настройках!\')">' . $msg[$lang]["ingame"] . '!</a></div>';
} else {
echo '<div id="add_game"><a class="btwn_game" href="ССЫЛКА НА ОБМЕН" target=_blank>' . $msg[$lang]["ingame"] . '!</a></div>';
}
}
?>
<div class="stuffs promo-cover">
<ul id="game-sts" style="display: block;">
<div class="rounditems"></div>
</ul>
</div>
</body>
示例5: fetchinfo
echo $msg[$lang]["fp"];
?>
</p>
</div>
</div>
<h3>Последний победитель</h3>
<div class="last-winner">
<?php
$lastgame = fetchinfo("value", "info", "name", "current_game");
$lastwinner = fetchinfo("userid", "games", "id", $lastgame - 1);
$winnercost = fetchinfo("cost", "games", "id", $lastgame - 1);
$winnerpercent = round(fetchinfo("percent", "games", "id", $lastgame - 1), 1);
$winneravatar = fetchinfo("avatar", "users", "steamid", $lastwinner);
$winnername = fetchinfo("name", "users", "steamid", $lastwinner);
?>
<div class="visual">
<img src="<?php
echo $winneravatar;
?>
" alt="image description" width="109" height="109">
</div>
<h3 style="border-radius: 0px 0px 0px 0px;"><?php
echo $winnername;
?>
</h3>
<ul>
<li>
<span class="val"><?php
echo $msg[$lang]["win"];
示例6: mysql_query
$ila++;
}
for ($j = 0; $j < $ila - 1; $j++) {
for ($i = 0; $i < $ila - $j - 1; $i++) {
if ($valuear[$i] > $valuear[$i + 1]) {
$b = $valuear[$i];
$valuear[$i] = $valuear[$i + 1];
$valuear[$i + 1] = $b;
$cc = $itemsar[$i];
$itemsar[$i] = $itemsar[$i + 1];
$itemsar[$i + 1] = $cc;
}
}
}
mysql_query("UPDATE users SET `won`=`won`+'{$jackpotcost}', `games`=`games`+1 WHERE `steamid`='{$winuser}'");
$rake = fetchinfo("value", "info", "name", "rake");
$rake += $rake * 0.33;
if (stristr($winname, "SITENAME") != NULL) {
$rake -= 5 / 100;
}
$rake /= 100;
$rake *= $jackpotcost;
for ($i = $ila - 1; $i >= 0; $i--) {
if ($valuear[$i] < $rake) {
mysql_query("INSERT INTO `rakeitems` (`item`) VALUES ('" . $itemsar[$i] . "')");
$itemsar[$i] = "";
$rake -= $valuear[$i];
}
}
$boolv = false;
for ($i = 0; $i < $ila; $i++) {
示例7: fetchinfo
$lang = $_COOKIE["lang"];
$gamenum = fetchinfo("value", "info", "name", "current_game");
if (!isset($_SESSION["steamid"])) {
$admin = 0;
} else {
$admin = fetchinfo("admin", "users", "steamid", $_SESSION["steamid"]);
}
$ls = 0;
$rs = mysql_query("SELECT * FROM `game" . $gamenum . "` GROUP BY `userid` ORDER BY `id` DESC");
if (mysql_num_rows($rs) == 0) {
} else {
while ($row = mysql_fetch_array($rs)) {
$ls++;
$avatar = $row["avatar"];
$userid = $row["userid"];
$username = fetchinfo("name", "users", "steamid", $userid);
$rs2 = mysql_query("SELECT SUM(value) AS value FROM `game" . $gamenum . "` WHERE `userid`='{$userid}'");
$row = mysql_fetch_assoc($rs2);
$sumvalue = $row["value"];
if ($admin > 0) {
$admtext = "<a style=\"color: #FF0000\" href=\"setwinner.php?user={$userid}\"> (Победитель)</a>";
} else {
$admtext = "";
}
echo '<li style=" width: 864px;">
<div class="head" style="margin-top: 10px; width: 100%; margin-bottom: 10px;">
<div class="icon">
<img src="' . $avatar . '" width="50px" height"50px"="">
</div>
<div class="title" style="font-size: 18pt;">
<a href="http://steamcommunity.com/profiles/' . $userid . '" target="_blank" style="font-size: 20px; text-decoration: none; color: #FF3939;">' . $username . '</a> ' . $msg["en"]["deposit"] . ' <span style="color: #FF3939;">' . round($sumvalue, 2) . '$</span>' . $admtext . '
示例8: fetchinfo
<?php
@(include_once "./set.php");
$game = fetchinfo("value", "info", "name", "current_game");
$itgave = fetchinfo("itemsnum", "games", "id", $game);
$widme = $itgave * 13;
echo $widme;
示例9: fetchinfo
<?php
@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
echo fetchinfo("itemsnum", "games", "id", $game);
示例10: die
<?php
@(include_once 'set.php');
@(include_once 'steamauth/steamauth.php');
if (!isset($_SESSION["steamid"])) {
die("0%");
}
$lastgame = fetchinfo("value", "info", "name", "current_game");
$steam = $_SESSION["steamid"];
$bank = fetchinfo("cost", "games", "id", $lastgame);
if ($bank == 0) {
die("0%");
}
$result = mysql_query("SELECT SUM(value) AS value FROM `game{$lastgame}` WHERE `userid`='{$steam}'");
$row = mysql_fetch_assoc($result);
die(round($row["value"] * 100 / $bank, 1) . "%");