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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -