# Directory Search...?

**URL:** <https://forum.kirupa.com/t/directory-search/280274>\
**Category:** programming\
**Created:** [January 25, 2009, 2:57pm UTC](https://forum.kirupa.com/t/directory-search/280274 "2009-01-25T14:57:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyandi\_man](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cyandi\_man](https://forum.kirupa.com/u/cyandi_man)\
**Post date:** [January 25, 2009, 2:57pm UTC](https://forum.kirupa.com/t/directory-search/280274/1 "2009-01-25T14:57:52Z")

</div>

Hi guys - i have a mini search page on my site in which i want people to be able to pull contact info by either typing in a Phone number or Company name in the search fields. Question is:

1. how do i have php compare the _Phone number_ entered and phone number on database by just verifying that they have the same numbers in the same sequence? (ignoring any brackets or dashes)

2. how do i have the _Company Name_ field search the database for any word that was entered in the input field excluding “the”

Please advise …thanks fellas!
