Jump to content

date query


ebchost

Recommended Posts

i try to build counter with mysql

 

mysql_query("INSERT INTO `rss_visitor` VALUE ('','$ip','$id_kor','$date1', '$date2','$opcija') ") or die(mysql_error())

 

format of date1, 2 is

$date1 = date('Y-m-d');

$date2 = date('H:m:s');

 

this code is ok and work.

 

Q:

How to present with mysql all data from today ? or before 2 day, .... etc...

 

SELECT * FROM `rss_visitor` WHERE ? // what go hiar

Link to comment
https://forums.phpfreaks.com/topic/242212-date-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.