php - No results displayed Mysqli -


i have query 1 of number of queries have done, other queries works great not display results. database has results meets request. tell me wrong?

<?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 keeper_points playerid=? , 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);      } ?> 

it sounds playerid , weekno columns may integers. if are, try passing in parameters so:

mysqli_stmt_bind_param($stmt16,"ii",$gkb,$week_id); 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -