• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP fetchinfo函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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);
开发者ID:PGeorgiev,项目名称:csgojackpotV2,代码行数:5,代码来源:currentbank.php


示例2: fetchinfo

<?php

@(include_once "./set.php");
echo fetchinfo("value", "info", "name", "current_game");
开发者ID:s-gto,项目名称:huh,代码行数:4,代码来源:currentgame.php


示例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;
开发者ID:mikestamb,项目名称:CSGO-Sweeps,代码行数:13,代码来源:timeleft.php


示例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>
开发者ID:Gunboybr,项目名称:FireCSGO.ru,代码行数:31,代码来源:index.php


示例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"];
开发者ID:s-gto,项目名称:huh,代码行数:31,代码来源:about.php


示例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++) {
开发者ID:s-gto,项目名称:huh,代码行数:31,代码来源:getwinner34634f.php


示例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 . '
开发者ID:s-gto,项目名称:huh,代码行数:31,代码来源:items.php


示例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;
开发者ID:s-gto,项目名称:huh,代码行数:7,代码来源:currentitemswidth.php


示例9: fetchinfo

<?php

@(include_once "set.php");
$game = fetchinfo("value", "info", "name", "current_game");
echo fetchinfo("itemsnum", "games", "id", $game);
开发者ID:PGeorgiev,项目名称:csgojackpotV2,代码行数:5,代码来源:currentitems.php


示例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) . "%");
开发者ID:mikestamb,项目名称:CSGO-Sweeps,代码行数:16,代码来源:currentchance.php



注:本文中的fetchinfo函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP fetchtablelist函数代码示例发布时间:2022-05-15
下一篇:
PHP fetch_word_wrapped_string函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap