• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[ZNOTE] query with wildcard LIKE %...%

raf

Active Member
Joined
Jan 10, 2011
Messages
261
Reaction score
38
Location
Warsaw, PL
I'm trying to get results in znote aac, with operator LIKE %...%, but it doesn't seem to work.
PHP:
$data = mysql_select_single("SELECT * FROM `players` WHERE `name` LIKE '%$playername%' ");

I know that ZnoteAAC uses mysqli, but i have no clue how to make it work within mysql_select_single function.
 
Both not working for me. Maybe that's because im using AJAX to get that ? Altho, if i dont put % signs, and do it like WHERE `name`='$playername' it's working but only if i type full name.
 
Back
Top