SA-MP Forums

SA-MP Forums (http://forum.sa-mp.com/index.php)
-   Romānă/Romanian (http://forum.sa-mp.com/forumdisplay.php?f=40)
-   -   db_escape (http://forum.sa-mp.com/showthread.php?t=631013)

GaByM 21/03/2017 04:04 PM

db_escape
 
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?

Jessyy 21/03/2017 05:51 PM

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

wanted2013 25/03/2017 12:52 PM

Re: db_escape
 
foloseste %e in loc de %s


All times are GMT. The time now is 05:56 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.