I want to allow users to include a wildcard character in a search for a value which may follow any one of the following formats: "%4%" or "23%", however, this should not allow the user to input an single quote. Basically, I am searching for a room number but since the room number can range from something such as G35,12LG, or 135C, 135D, I need to know exactly how I can go about doing this. I really have no code per se, so if anyone has any suggestions, I would be grateful.
Thanks.
using preg_match to allow users to search
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia