I use GET, to collect a variable :
$subid = $_GET['subid'];
In my DB Query i have the following :
->where('subID', '=', $subid)
Now if the variable $subid is blank , the result returns no information. How do i specify in the query that if the variable $subid is blank or empty, return all results?