Forum Moderators: open
I presume, that the db structure would be sth like:
id
name
surname
position
team
department
tel
mobile
fax
pager
...
I myself added also a field search where I store doubled data separated by space, and only in that field I search for
this will be in php:
$keywords = mysql_real_escape_string [php.net](str_replace [php.net](array(" ", "+", "*"), "%", $_POST['search']);
$sql = "SELECT * FROM `employees` WHERE search LIKE '%$keywords%'";
but you can also perform full text search.
Hope this helps you
Regards
Michal