php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "select count"

Why is it recommended to use SELECT SQL_CALC_FOUND_ROWS and SELECT FOUND_ROWS() in PHP pagination?

When implementing pagination in PHP using SQL queries, it is recommended to use SELECT SQL_CALC_FOUND_ROWS before your main SELECT query and then use...

What function can be used to count the number of rows returned by a query in PHP?

To count the number of rows returned by a query in PHP, you can use the `mysqli_num_rows()` function. This function returns the number of rows in a re...

What is the function used in PHP to count the number of selected query results from a database?

To count the number of selected query results from a database in PHP, you can use the mysqli_num_rows() function. This function returns the number of...

How can PHP be used to count the frequency of specific values in a MySQL database?

To count the frequency of specific values in a MySQL database using PHP, you can write a query to select the count of occurrences of each value. You c...

What SQL query can be used to group and count the same words in a database table in PHP?

To group and count the same words in a database table in PHP, you can use the SQL query below: ```sql SELECT word, COUNT(*) as count FROM table_name...

Showing 31 to 35 of 5148 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1029 1030 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.