포인트지급오류 질문합니다
본문
<?php
include_once '_func.php';
include_once '_common.php';
$round = $list[$i]['bet_round'];
$name = $list[$i]['bet_name'];
$result = $list[$i]['bet_result'];
$money = $list[$i]['bet_ifmoney'];
$value = 1.98;
$ifmoney = $money * $value;
$url = 'https://localhost/game';
$data = webdata($url, 'GET', '');
$data2 = splits($data, '</span><strong>'.$round.'', '</tr>', 1);
$_count = explode('<span class="r_icon round15 nlotto_power_fd', $data2);
$_count = count($_count);
$Result1 = splits($data2,'<span class="r_icon round15 nlotto_power_fd','"', 1);
$Result1 = str_replace('1_1', '1', $Result1);
$Result1 = str_replace('1_2', '2', $Result1);
$Result2 = splits($data2,'<span class="r_icon round15 nlotto_power_fd','"', 2);
$Result2 = str_replace('1_1', '3', $Result1);
$Result2 = str_replace('1_2', '4', $Result1);
$Result3 = splits($data2,'<span class="r_icon round15 nlotto_power_fd','"', 3);
$Result3 = str_replace('1_1', '5', $Result1);
$Result3 = str_replace('1_2', '6', $Result1);
$Result4 = splits($data2,'<span class="r_icon round15 nlotto_power_fd','"', 4);
$Result4 = str_replace('1_1', '7', $Result1);
$Result4 = str_replace('1_2', '8', $Result1);
$Result5 = '';
if($result=='대기중'){
if($Result1==$name)
{
$Result5 = '적중';
insert_point( $member[ 'mb_id' ], $money, '[파워볼] 적중 포인트');
$sql = "update power_ball_betlist set bet_result = '적중 where bet_round = '".$round."'";
sql_query($sql);
}else if($Result2==$name)
{
$Result5 = '적중';
insert_point( $member[ 'mb_id' ], $money, '[파워볼] 적중 포인트');
$sql = "update power_ball_betlist set bet_result = '적중 where bet_round = '".$round."'";
sql_query($sql);
}else if($Result3==$name)
{
$Result5 = '적중';
insert_point( $member[ 'mb_id' ], $money, '[파워볼] 적중 포인트');
$sql = "update power_ball_betlist set bet_result = '적중 where bet_round = '".$round."'";
sql_query($sql);
}else if($Result4==$name)
{
$Result5 = '적중';
insert_point( $member[ 'mb_id' ], $money, '[파워볼] 적중 포인트');
$sql = "update power_ball_betlist set bet_result = '적중 where bet_round = '".$round."'";
sql_query($sql);
}else if($Result4=="")
{
$Result5 = '대기중';
}else
{
$Result5 = '미적';
$sql = "update power_ball_betlist set bet_result = '미적' where bet_round = '".$round."'";
sql_query($sql);
}
} else if($result=='적중'){
$Result5 = '적중';
} else if($result=='미적'){
$Result5 = '미적';
}
echo'</span><strong>'.$Result5.';
?>
해당소스에서해당소스에서
insert_point( $member[ 'mb_id' ], $money, '[파워볼] 적중 포인트');
아부분만 작동을안하는데 해결법아시는분 방법좀 알려주세요~
나머진다 정상작동하는데 포인트지급부분만 작동을안하네요
위에소스상엔안보이지만 common.php이파일은 해당php소스부분위쪽에include되있습니다
오류가뜬다면 무슨오류인지 보고싶지만 오류도 표출을 안합니다
해결법아시는분 좀 알려주세요~