php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "DATE_SUB"

What are the advantages of using MySQL functions like DATE_SUB in PHP queries instead of manipulating data within the PHP code?

Using MySQL functions like DATE_SUB in PHP queries instead of manipulating data within the PHP code can improve performance and reduce the amount of d...

Is it possible to achieve the desired date trimming functionality directly in MySQL?

To achieve date trimming functionality directly in MySQL, you can use the DATE_FORMAT function along with the DATE_SUB or DATE_ADD functions to trim t...

How can PHP be used to retrieve data from a database based on a specified number of days?

To retrieve data from a database based on a specified number of days, you can use SQL queries with the DATE_SUB function to calculate the date range....

How can the script be refactored to utilize MySQL date functions for date comparisons and calculations instead of manual string manipulation?

The issue can be solved by utilizing MySQL date functions for date comparisons and calculations instead of manual string manipulation. By using functi...

How can PHP developers effectively handle date comparisons and calculations in their database queries?

When handling date comparisons and calculations in database queries, PHP developers can effectively use SQL functions like DATE_FORMAT, DATE_ADD, and...

Showing 11 to 15 of 47 results

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

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.