如何搜索技能是存在于简历或不使用PHP


How to search the skill is exist in the Resume or not using PHP?

任何人都能帮我吗

Problem: I Have a "User" table 
USER
-------------------------------
uid   | Uname | Resume | skill
-------------------------------
1       bla     a.doc     php
2       blb     b.pdf     jquery
-------------------------------

使用从上表中我正在从简历中搜索技能,技能字段获取用户id。是否可以这样搜索?如果可以,请告诉如何解决这个问题,或者给出在文件中搜索关键字的替代方法的建议。

我英语不好。如果有任何错误,请原谅。

试试这个:

$rs = $this->db
      ->distinct()
      ->select('uid')
      ->like('Resume', $searchTerm, 'both')
      ->or_like('skill', $searchTerm, 'both')
      ->get('User')
      ->result_array();

这里,$searchTerm是搜索到的文本。