In Rbase there was a command you could use to see if a text field contained a specified string. For example:
Is there a command like that in php? I know you can say in phpMyAdmin:Code:SELECT * FROM addresslist WHERE address2 CONTAINS "CA";
but I get the feeling you can't use wildcards in straight php. Can you?Code:SELECT * FROM addresslist WHERE address2 LIKE "%CA%";
Thanks.



Reply With Quote

Bookmarks