WHAT IS REALLY THE WORK OF MYSQLI_NUM_ROWS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

WHAT IS REALLY THE WORK OF MYSQLI_NUM_ROWS

Hi, please I do use this function very well, but I hate copy and paste, I really wanna know it's work, it's like I'm confusing it with MYSQLI_FETCH_ARRAY... Please can someone state clearer their differences and what they both work for (mysqli_fetch_array and Mysqli_num_rows). Thanks

23rd Aug 2017, 4:39 PM
Somoye Michael Plus_Baba
2 Answers
+ 2
This is going to sound crazy... it's the number of rows returned from your query. :D I would look into affected_rows also, it's the number of rows affected by whatever operation you did. Hope that helps. Simply put, it's just the number of rows that's returned from the query.
23rd Aug 2017, 4:46 PM
AgentSmith
0
How does the affected row work? And how is the function written?
26th Aug 2017, 5:44 PM
Somoye Michael Plus_Baba