View Single Post
totopizza
AlliedModders Donor
Join Date: Oct 2015
Location: Honduras
Old 01-28-2019 , 18:51   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #176

http://php.net/manual/en/function.my...ape-string.php

It is the same, you must replace several characters:
` for \`
' for \'
" for \^"
% for \%

Nick: [MXS] Totopizza's HN.


Replace: ' for \'
Result: [MXS] Totopizza\`s HN.

Query: "SELECT * FROM %s WHERE Player = `[MXS] Totopizza\`s HN.`";

but.. without escape string:

Query: "SELECT * FROM %s WHERE Player = `[MXS] Totopizza`s HN.`";
Then... error

EDIT: https://forums.alliedmods.net/showpo...60&postcount=7

Last edited by totopizza; 01-28-2019 at 18:56.
totopizza is offline