company.php?mode=resume_by_frmYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND position_1 LIKE '%บัญชี%' OR position_2 LIKE '%บัญชี%' OR position_3 LIKE '%' at line 1
$keywordList1 ="SELECT user_id,name,surname,province,birthday,gender,position_1,position_2,picture,institute1,majoring1,branch1,gpa1,total_experiences,expect_salary,province,date_update FROM tbl_member WHERE level='1' AND human_status='yes'";
foreach ( $keywordArray AS $val )
{
if (trim($val) != '')
{
$keywordList2[] = "AND position_1 LIKE '%$val%' OR position_2 LIKE '%$val%' OR position_3 LIKE '%$val%'";
}
}
if (count($keywordList2) > 0)
{
$keywordSQL = "" . implode(" OR ", $keywordList2) . "";
}
$sql =$keywordList1.$keywordSQL." ORDER BY date_update DESC";