php - using concat select firstname and lastname search -
this sql query. need search first name , last name using search.
$result = 'select * resume (first_name "'.$skeyword.'%" or last_name "'.$skeyword.'%" or concat(first_name," ",last_name) "'.$skeyword.'%" or email "'.$skeyword.'%" or phone "'.$skeyword.'%" or zip_code "'.$skeyword.'%" or find_us "'.$skeyword.'%" )';
fetch result simple query , display result using concatination...
$seresult='select * resume (first_name "%'.$skeyword.'%" or last_name "%'.$skeyword.'%" or email "%'.$skeyword.'%" or phone "%'.$skeyword.'%" or zip_code "%'.$skeyword.'%" or find_us "%'.$skeyword.'%" )';
and after while displaying
<?= $seresult['first_name']; ?>-<?= $seresult['last_name']; ?>
Comments
Post a Comment