I am facing this fatal error when I am doing row count, showing me the error mysqli_stmt::rowCount() is an undefined method, please guide me.
Your answer is hidden in your question, You are using the upgraded PHP extension mysqli which does not support the rowCount() function Because rowCount() is an old PHP extension mysql function, So replace rowCount() to num_rows.
If you still have a question about this, submit it in our Q&A community - Ask Question