php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "NOW()"

How does the NOW() function in PHP differ from the MySQL function with the same name?

The NOW() function in PHP returns the current date and time in the format 'Y-m-d H:i:s', while the MySQL NOW() function returns the current date and t...

What is the potential issue with the code snippet "$reg_seit = date_format(now(), '%d.%M.%Y');" in PHP?

The issue with the code snippet "$reg_seit = date_format(now(), '%d.%M.%Y');" is that the function now() is not a valid PHP function. To fix this issu...

How can the use of strtotime("now") affect the consistency of session variables in PHP?

Using strtotime("now") to set the session variable may lead to inconsistent results because the value of "now" changes every second. To ensure consist...

What are the potential pitfalls of using quotes around the NOW() function in a MySQL query when inserting data from PHP?

Using quotes around the NOW() function in a MySQL query when inserting data from PHP can cause the NOW() function to be treated as a string rather tha...

What are common pitfalls when trying to compare dates using PHP's NOW() function?

When comparing dates using PHP's NOW() function, a common pitfall is that NOW() returns the current date and time in the format "YYYY-MM-DD HH:MM:SS",...

Showing 1 to 5 of 180 results

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

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.