skip to main |
skip to sidebar
concat(substring(a.tgl_lapor,6,2),'/',substring(a.tgl_lapor,9,2),'/',substring(a.tgl_lapor,1,4)) as tanggal
SELECT concat(substring(a.tgl_lapor,6,2),'/',substring(a.tgl_lapor,9,2),'/',substring(a.tgl_lapor,1,4)) as tanggal,a.nama, a.jenkel_pelapor,a.tmpt_lahir,a.tgl_lahir_pelapor,a.alamat, a.keperluan,a.photo, a.tgl_lapor as tgl_lapor, b.nama as pekerjaan_pelapor
FROM tbl_skck a left join tbl_pekerjaan b on a.pekerjaan_pelapor=b.id
WHERE concat(substring(a.tgl_lapor,6,2),'/',substring(a.tgl_lapor,9,2),'/',substring(a.tgl_lapor,1,4)) BETWEEN '$periode_mulai' and '$periode_selesai'
ORDER BY substr(a.tgl_lapor,6,2) asc, substr(a.tgl_lapor,9,2) asc";