query($query);$query1 = 'SELECT @phone';$result = $conn->query(">
时间:2021-07-01 10:21:17 帮助过:16人阅读
$query = "CALL T_PROCEDURE_GETPHONE($pid,@phone)"; $conn->query($query); $query1 = 'SELECT @phone'; $result = $conn->query($query1); $rr = $result->fetch_row();
$result->num_rows 返回是1 说明有一条记录
echo $rr[0];