how can i reject the sql table empty fields and i want to fetch that not null fields in another page
This is my query
SELECT e.r_id,
e.cmpnyname,
e.st_name,
e.week,
e.desig,
e.cm_id,
e.weekly_reports
FROM reports AS e
INNER JOIN company AS u
ON u.cmpnyname = e.cmpnyname
WHERE e.weekly_reports IS NOT NULL
AND e.cm_id = ".$_GET['id'];
But this query fetches all the fields including null fields
Can anyone help me to find this