0
I have a problem to make a Select, I need help, I am programming in php, to do searches in a database I need to do a search for dates. I have already managed to do the search field by specific date, but I need to do the search with interval between dates. (example: search from 20/05/2020 to 31/05/2020).
the select I made to search for a date was this: case 'search reduroamdata':
global $linhadataa;
global $rsdataa;
$dataa = new dataa();
$data = $_POST['data'];
$dataa->pesquisareduroamdata("SELECT * FROM usuarios WHERE data LIKE '%$data%' && ssid = 'EDUROAM' ");
$linhadataa = $dataa->Linha;
$rsdataa = $dataa->Result;
if anyone knows help me.
In your database the field
data
is a string type?– anonimo