I cant call the time that i want im using the sytext
$sql="select kedatangan.id,pelajar.nama,kedatangan.masa
from pelajar
join kedatangan on pelajar.barcode= kedatangan.barcode
where 'masa' <= "8:00" order by id;";
But it doesn't work as i want..but when i change this <
to this >
it can call but it call all the data without following this statment