$sql="select id,username,password from user where username= ?"; $stmt=mysqli_prepare($conn,$sql); mysqli_stmt_bind_param($stmt,'s',$name); mysqli_stmt_execute($stmt); $result=mysqli_stmt_get_result($stmt); //这句提示警告Call to undefined function 'mysqli_stmt_get_result' $row=mysqli_fetch_assoc($result);
虽然不影响程序运行,但是编辑界面有标黄下划线mysqli_stmt_get_result