Hello today I coded a system where each user login was recorded and inserted into a database using PDO for MySQL, and I logged each of these logins with a date using the below PHP code and instered each value into my MySQL database table called user_logins. I logged the logins with the date string below...
date("D dS F H:i:s")
That outputs "Sat 12th September 20:59:33" (for example), but what I am trying to do is get all of the values from user_logins table but only get them if they have happened today. So basically I want to turn the system I current have (displaying all recent logins) to only showing todays logins that have happened today?
Please don't sned me to another question, because them questions use a different date()
method to me, and most questions I have already checked and are unsuccessful.