php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "NOW()"

How can proper targeting be achieved when using NOW() to compare dates in a database query?

When using NOW() to compare dates in a database query, it is important to ensure that the date format is consistent between the database and the PHP c...

In the context of PHP development, what are the advantages of using the MySQL function NOW() over time() for timestamp comparisons?

When comparing timestamps in PHP development, using the MySQL function NOW() is advantageous over time() because NOW() returns the current date and ti...

Why is it recommended to use NOW() instead of time() in SQL queries when working with PHP?

Using NOW() instead of time() in SQL queries is recommended because NOW() returns the current date and time in the format 'YYYY-MM-DD HH:MM:SS', which...

How can using the DATETIME format and NOW() function improve efficiency in handling date and time values in PHP?

Using the DATETIME format and the NOW() function in PHP can improve efficiency in handling date and time values by providing a standardized format for...

How can the NOW() function in MySQL be utilized to store the current date and time in a DATETIME column when working with PHP?

When working with PHP and MySQL, you can utilize the NOW() function in MySQL to store the current date and time in a DATETIME column. This can be achi...

Showing 16 to 20 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.