In article <99mtsa$85b$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Mark Collins") wrote:
> Hope you can help, I have put a basic database together which add, deletes,
> updates and edits records but I am not sure where to start with searching
> the data base. I have already got it working a bit using ereg and a while
> loop, but it is case sensitive and wont find a match in the middle of a
> string (or at least I dont think it will). Does anyone know of a better way
> to do this?
eregi() is for case-insensitive matching
The preg_* functions allow switching back and forth between case-sensitive
and case-insensitive subpattern matching within a single pattern.
--
CC
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]