php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "DATE_SUB"

What are the differences in using DATE_SUB for date calculations in MySQL versions before and after 5.0?

When using DATE_SUB for date calculations in MySQL versions before 5.0, the function only accepts a single argument for the date interval. However, in...

What potential pitfalls should be considered when using the DATE_SUB function in PHP?

When using the DATE_SUB function in PHP, it is important to consider the timezone settings of your server and the format of the date string being used...

Are there any potential pitfalls or limitations when using date_add() and date_sub() functions in PHP?

One potential pitfall when using date_add() and date_sub() functions in PHP is that they modify the original date object rather than returning a new m...

What are some common pitfalls when using DATE_SUB function in PHP to delete entries from a MySQL database?

One common pitfall when using the DATE_SUB function in PHP to delete entries from a MySQL database is not properly formatting the date in the correct...

How can the MySQL function DATE_SUB() be used to check for entries older than a specific number of days in PHP?

To check for entries older than a specific number of days in MySQL using the DATE_SUB() function, you can subtract the desired number of days from the...

Showing 1 to 5 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.