B
B
Bur Ov2016-01-06 23:58:46
PHP
Bur Ov, 2016-01-06 23:58:46

How to retrieve users from a database for a specific date?

There is a database, n number of users are added to it every day, each has its own date of the form: 01/01/2016 | 00:41:06
How to remove users from the database only on a certain date? for example, display how many users with the date 01/31/2015 using php
-------------------------------------- -------
$Result = mysqli_query($CONNECT, 'SELECT * FROM `users` WHERE field `date` = "31.01.2015%"');
so tried

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-01-07
@burov0798

If the date is stored as text, then you can do this.
If the field is as DateTime, then
where date(field) = '31.01.2015'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question