이 쿼리는 내가 수행 한 많은 쿼리 중 하나입니다. 다른 모든 쿼리는 훌륭하게 작동하지만 결과가 표시되지 않습니다. 내 데이터베이스에 요청에 부합하는 결과가 있습니다. 누군가가 무엇이 잘못 될 수 있다고 말합니까?결과가 표시되지 않습니다. Mysqli
<?php include_once "/phpmysqli/config.php" ?>
<?php
$Week_ID = $teams->WeekID->CurrentValue;
$GKB = $teams->Keeper2->CurrentValue;
$stmt16 = mysqli_stmt_init($conn);
if (mysqli_stmt_prepare($stmt16,"SELECT Total_pts FROM keeper_points WHERE PlayerID=? AND WeekNo=?"))
{
mysqli_stmt_bind_param($stmt16,"ss",$GKB,$Week_ID);
mysqli_stmt_execute($stmt16);
mysqli_stmt_bind_result($stmt16,$GKB_pts);
mysqli_stmt_fetch($stmt16);
echo $GKB_pts;
mysqli_stmt_close($stmt16);
}
?>
오류가 발생 했습니까? 어떤 기능 오류가 있는지 확인하십시오. –
$ GKB 및 $ Week_ID 문자열 또는 정수가 있습니까? – happyjack
그들은 정수형 일 수 있습니까? – user3346221