Jump to content
php.lv forumi

drop database


Recommended Posts

Papildus labs variants ir nodaliit arii lietotaajus - proti webam / frontendam / pashai lapai izveido lietotaaju tikai ar SELECT, INSERT, UPDATE nu ja vajag tad arii ar DELETE tiesiibaam, bet privileegjeeto lietotaaju (ar DROP, GRANT utt) tiesiibaam lieto tikai savaam vajadziibaam vai administraacijas riikaa.

Link to comment
Share on other sites

nezinu ...

es lietoju shaadi:

....
$all = mysql_query("SELECT * FROM tabula WHERE id = '".$_GET['id']."'");
....

//deletam
mysql_query("DELETE FROM tabula WHERE id = '".$_GET['id']."'");
......

nu ja to $_GET['id'] padod ar veetriibu drop database tad nekas nenotiks - buus vienc error

 

vispaar jau muljkiigi caur mainiigo padot vesalu vaicaajumu....

 

man vismaz naf saprotams kaa var to injekciju izdariit...

a vrbuut es arii nepareizi saprotu ...

Link to comment
Share on other sites

×
×
  • Create New...