Reputation: 5781
i have a field in my table called time
its INT and iam using php time() function
now i want select all records that its time
is today
Upvotes: 1
Views: 7786
Reputation: 46395
SELECT time FROM table WHERE DATE(column) = CURDATE();
Check the following link :
Upvotes: 8
Reputation: 14992
$sql = "SELECT * FROM table WHERE time >= '".strtotime("today")."' AND time < '".strtotime("tommorow")."'";
Upvotes: 3