php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "random rows"

What is a more efficient way to retrieve multiple random rows from a database in PHP?

When retrieving multiple random rows from a database in PHP, a more efficient way is to use the `ORDER BY RAND()` clause in the SQL query. This clause...

How can the RAND() function in MySQL be used to retrieve random rows efficiently in PHP?

When using the RAND() function in MySQL to retrieve random rows efficiently in PHP, it is important to use a combination of ORDER BY RAND() and LIMIT...

What are the best practices for selecting random rows from a database table in PHP?

When selecting random rows from a database table in PHP, one common approach is to use the `ORDER BY RAND()` clause in the SQL query. However, this me...

What is the best practice for selecting random rows in MySQL without duplicates?

When selecting random rows in MySQL without duplicates, one common approach is to use the `ORDER BY RAND()` clause in the query. However, this method...

What is the best practice for updating multiple rows in a database table with random values in PHP?

When updating multiple rows in a database table with random values in PHP, a common approach is to loop through each row and update it with a randomly...

Showing 1 to 5 of 4378 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 875 876 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.