php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "num_rows"

How can the error "Fatal error: Call to undefined method mysqli::num_rows()" be resolved in PHP?

The error "Fatal error: Call to undefined method mysqli::num_rows()" occurs when trying to use the num_rows() method on a mysqli object, which is inco...

What are the best practices for handling num_rows() functions in MySQLi for PHP?

When using the num_rows() function in MySQLi for PHP, it is important to handle it properly to avoid any potential issues. One common best practice is...

How can the output of $t10avg be set to "--" if $num_rows is less than 10?

To set the output of $t10avg to "--" if $num_rows is less than 10, you can use a conditional statement to check the value of $num_rows before calculat...

How can the issue of increasing $num_rows values with each reload be resolved in the PHP script?

The issue of increasing $num_rows values with each reload can be resolved by setting the $num_rows variable to 0 at the beginning of the script execut...

What is the difference between the affected_rows and num_rows functions in PHP when working with MySQLi?

The main difference between the affected_rows and num_rows functions in PHP when working with MySQLi is that affected_rows returns the number of rows...

Showing 1 to 5 of 26 results

‹ 1 2 3 4 5 6 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.