Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php stmt->;get_result()不';不完整_Php_Mysql_Mysqli_Prepared Statement - Fatal编程技术网

Php stmt->;get_result()不';不完整

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

我有一个带有echos的php代码来检查它停止的位置(它不会崩溃,但会停止发送echos,并且不能按预期工作)


它在“稍后”回音之前停止;因此,它必须在
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"];