OK so I am retrieving fullname from web page to filter customer list and I am not really sure which part is first name or last name so I need to run a similar query like the one below:
"SELECT sc.*, c.firstname, c.lastname,c.email FROM scoop_customer AS sc LEFT JOIN
customer AS c ON sc.customer_id = c.customer_id WHERE c.firstname + ' ' + c.lastname
LIKE '%".$fullname."%'"
But it doesn’t seem working to me even though I tried many times and normally it should have been returning values from DB. Could you please tell me where I am doing wrong?
Use
CONCAT(c.firstname , ' ' , c.lastname )