profit.inc.php
来自「六和投注系统」· PHP 代码 · 共 49 行
PHP
49 行
<?php
function profits( $agent, $n )
{
global $conn;
switch ( $n )
{
case 1 :
$sqlsup = mysql_query( "select * from agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "profit" );
return $profit;
break;
case 2 :
$sqlsup = mysql_query( "select * from all_agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "profit" );
return $profit;
break;
case 3 :
$sqlsup = mysql_query( "select * from super_agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "profit" );
return $profit;
break;
case 4 :
$sqlsup = mysql_query( "select * from agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "all_profit" );
return $profit;
break;
}
}
function cut_num( $agent, $sign, $cut_plate )
{
global $conn;
if ( $sign = $UN_0 || !isset( $sign ) )
{
$sqlsup = mysql_query( "select * from agent_cut where user_account='{$agent}' and sign='{$sign}' and cut_plate='{$cut_plate}'", $conn );
$cut = mysql_result( $sqlsup, 0, "cut_num" );
return $cut;
}
else
{
return "0";
}
}
echo "\r\n";
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?