hackerman Posted May 15, 2007 Report Share Posted May 15, 2007 Pieņemsim, ka ir useru saraksts. Daži no useriem ir nobanoti un es negribu, lai tie parādās memberu sarakstā. Kā to panākt? Skripts nolasa no datubāzes datus un izvada lietotāju nikus, problēma tā, ka izvada visus nikus =/ Nu varētu kautkā piešūt viņam klāt $banned = "yea"; Un tad pārbaudīt vai ir banots :) Tikai nemāku uztaisīt to, kur jāizdara, lai šis neparādās... Link to comment Share on other sites More sharing options...
bubu Posted May 15, 2007 Report Share Posted May 15, 2007 http://lv2.php.net/if if ($bannoed != "yea") { echo $useris; } Link to comment Share on other sites More sharing options...
andrisp Posted May 15, 2007 Report Share Posted May 15, 2007 Pieliec jaunu lauku tabulai - banned. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 15, 2007 Report Share Posted May 15, 2007 ja tev ir tabula |username| banots | tad SELECT username FROM tabulis WHERE banots !="yea" Link to comment Share on other sites More sharing options...
aldis Posted May 15, 2007 Report Share Posted May 15, 2007 njem no turienes kur tev jau ir banoto saraksts... un salidzini ar tiem kas ir.. un ja sakriit tad lai raada BANNED Link to comment Share on other sites More sharing options...
Recommended Posts