MYSQLi store result and then get result
问题 I have a function which does the following things $stmt = mysqli_prepare.. //check for preparation failure mysqli_stmt_bind_param //Check for bind error mysqli_stmt_execute //Check for execution error mysqli_stmt_store_result //Problem is here //Check for error return $stmt I have these steps in a function because I need it in two placeds the same piece of code. After getting the stmt, I need to check number of rows [ mysqli_Stmt_num_rows ]. So only I have that stored result stmt at the end