06.04.2010, 05:52
Before anyone replies "****** omg", I checked and couldn't find anything related.
Anyway, I'm trying to compare part of a string to a value in the database (mysql) and I don't quite know how, I was considering exploding the value but I'm not too sure how I'd go about that exactly.
Basically, what I need to do is query "BannedProviders" to see if a provider is listed (such as hotmail.com), and if it's listed return 1 or something?
EDIT: Solved, so tired I forgot about exploding the string before querying it and using the exploded value/array.
Anyway, I'm trying to compare part of a string to a value in the database (mysql) and I don't quite know how, I was considering exploding the value but I'm not too sure how I'd go about that exactly.
Basically, what I need to do is query "BannedProviders" to see if a provider is listed (such as hotmail.com), and if it's listed return 1 or something?
EDIT: Solved, so tired I forgot about exploding the string before querying it and using the exploded value/array.