I'm not sure this is correct (or even possible) and need some help with it.
$GetSearchDate = "Select Distinct t.track_date,c.client,e.emp_name from t.tracking, c.client_list, e.emp_list where '$from_date'>=track_date and '$to_date'<=track_date and" .
if ($search_by == 'cli'){
. "c.client RLIKE '$keyword'";
}else{
. "e.emp_name RLIKE '$keyword'";
}
I am getting syntax errors when trying to run this.
Help will be greatly appreciated.
C.