Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Consulta de pesquisa PHP MySQL


Tente usar concat:
$q = "SELECT * FROM `members` WHERE `first_name` LIKE :search_string 
OR `last_name` LIKE     :search_string 
OR concat(`first_name` , ' ', `last_name`) LIKE :search_string";