28.08.2014, 17:05
Quote:
Wildcards indeed.
SQL LIKE accepts wildcards, the one you want is '%', this tells the engine that there can be 0 or more missing letters there. %string% will give you what you need. Samp escapes the % sigh so you'll need to use %% Код:
SELECT * FROM `BANNED` WHERE `NAME` LIKE '%%%s%%' OR `IP` LIKE '%s' ORDER BY `DATE` DESC LIMIT 6 |
+rep'd everyone I could
EDIT: managed to +rep everyone