【发布时间】:2017-07-19 02:02:56
【问题描述】:
我不知道为什么会这样,我不断收到这个错误警告:
mysqli_stmt::bind_param(): 变量的数量与准备好的语句中的参数数量不匹配
$stmt = $conn->prepare("SELECT clicks FROM affiliate WHERE ID ='$ID'");
$stmt->bind_param("i", $ID);
$stmt->execute();
$stmt->bind_result($clicks); // Store the result in the $clicks variable
【问题讨论】:
标签: php mysql mysqli prepared-statement