SA-MP Forums Archive
[SOLVED] PHP related - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: [SOLVED] PHP related (/showthread.php?tid=139730)



[SOLVED] PHP related - Calgon - 06.04.2010

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.