Uldeens Posted September 24, 2003 Report Share Posted September 24, 2003 Man ir tipa registraacijas forma,kur ievada login,paroli,mailu,kaadu funkciju man izmantot lai saliidzinaatu datus ddatubaazee ar tiem kas ievadiiti formaa???Un tjipa ja sakriit tad dieja nee tad ieraxtiit datubaazee. Nute mans meeginaajums:skripts.. Nezinu kas neiet...viens peec otra erori.. Link to comment Share on other sites More sharing options...
Little_Hacker Posted September 24, 2003 Report Share Posted September 24, 2003 nuu tjip tev tas while ir nepareiz.. :) un visaam taam paarbaudeem jaanotiek ieksh while ;) imho Link to comment Share on other sites More sharing options...
Uldeens Posted September 24, 2003 Author Report Share Posted September 24, 2003 Kaa ieks while?? Link to comment Share on other sites More sharing options...
Aleksejs Posted September 24, 2003 Report Share Posted September 24, 2003 Taa, ka: 1) ja aiz while nav figuuriekavu {, tad tiek uztverts, ka while ciklaa ietverta tikai naakamaa rindinja: <code><font color="#000000"> $id = $row["id"];</font> </code> Izskataas, ka tai figuuriekavai, kas ir 19. rindinjaa buutu jaabuut aiz while 2) Vai nebuutu lietderiigaak uzreiz laist query: SELECT * FROM $usertable WHERE login = $logins Protams, ieprieksh pareizaa veidaa ierakstot mainiigo $logins no $_POST["login"]??? Link to comment Share on other sites More sharing options...
Roze Posted September 25, 2003 Report Share Posted September 25, 2003 Nu juus tur taisat tagad cherez zhee.. Piedvaaju sekojoshu variantu.. .. $result = mysql_query("SELECT id FROM $usertable WHERE login='$_POST[login]'"); vai labaak .. login LIKE '$_POST[login]' ja pienjemam ka piemeeram 'useris' ir tas pats kas 'UseRis' (tb nenjemam veeraa burtu lielumu (mazie/lielie)) un if(mysql_num_rows($result)>0) { echo "garaam jau ir taads login"; } else { echo "viss ok tavs login ir : $_POST['login']; } Thats all... Link to comment Share on other sites More sharing options...
Kaklz Posted September 25, 2003 Report Share Posted September 25, 2003 vai labaak .. login LIKE '$_POST[login]' ja pienjemam ka piemeeram 'useris' ir tas pats kas 'UseRis' (tb nenjemam veeraa burtu lielumu (mazie/lielie)) Peec idejas tas ir atkariigs no taa, kaads lauks ir izveeleets loginam. Ja tas ir Varchar, tad AaA = aAa = aaa = AAA, ja tas ir BLOB tipa lauks, tad AaA != aAa != aaa != AAA taapeec, ja lauks ir Varchar, tad peec idejas var lietot arii '=' Link to comment Share on other sites More sharing options...
Recommended Posts