Fatal error : Uncaught Error: Call to undefined method mysqli_stmt::rowCount()

#41
252
1 Answer
Question Image

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.


Related to:
phpmysqlinum_rowsrowcount()error
0
Answer
Answer 1 of 1
# 23

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.

0
0
0
Related Articles

If you still have a question about this, submit it in our Q&A community - Ask Question