SA-MP Forums Archive
db_escape - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Română/Romanian (https://sampforum.blast.hk/forumdisplay.php?fid=40)
+---- Thread: db_escape (/showthread.php?tid=631013)



db_escape - GaByM - 21.03.2017

db_escape e folosit pentru a impiedica SQL injection. Dar daca eu am scriptul asa:

Code:
"SELECT * FROM users WHERE name = '%s' LIMIT 0, 1"
%s e pus intre ghilimele, deci nu mai poti sa iti pui numele 'x OR 1=1'. Mai trebuie db_escape acum?


Re: db_escape - Jessyy - 21.03.2017

Eu iti recomand sa-l folosesti in continuare.
Citeste mai mult aici: http://forum.sa-mp.com/showpost.php?...20&postcount=4


Re: db_escape - wanted2013 - 25.03.2017

foloseste %e in loc de %s