Php stmt->;get_result()不';不完整
我有一个带有echos的php代码来检查它停止的位置(它不会崩溃,但会停止发送echos,并且不能按预期工作)Php stmt->;get_result()不';不完整,php,mysql,mysqli,prepared-statement,Php,Mysql,Mysqli,Prepared Statement,我有一个带有echos的php代码来检查它停止的位置(它不会崩溃,但会停止发送echos,并且不能按预期工作) 它在“稍后”回音之前停止;因此,它必须在get_result()上失败可能有两个原因: 您的系统没有安装Mysqlnd,这使得get_result()不可用。您必须安装php mysqlnd 不能同时使用get_result()和store_result()。从代码中取出存储结果调用 和 $stmt=$conexion->prepare("SELECT Email, MaxAct
它在“稍后”回音之前停止;因此,它必须在
get_result()上失败代码>可能有两个原因:
您的系统没有安装Mysqlnd,这使得get_result()不可用。您必须安装php mysqlnd
不能同时使用get_result()和store_result()。从代码中取出存储结果调用李>
和
$stmt=$conexion->prepare("SELECT Email, MaxActiv FROM `Keys` WHERE ProdKey = ?");
$stmt->bind_param('sss', $varKey);
$stmt->execute();
echo "before";
$stmt->store_result();
echo "middle";
$resultado = $stmt->get_result();
echo "later";
$row = $resultado->fetch_assoc();
echo "then";
$aa = $row["Email"];