homers Posted November 7, 2009 Report Share Posted November 7, 2009 Kods: <? $epasts = isset($_POST['epasts']); $check = mysql_query("SELECT epasts FROM lietotaji WHERE epasts=$epasts"); $epastss = $check[0]; $niks = isset($_POST['uzvards']); $check1 = mysql_query("SELECT niks FROM lietotaji WHERE niks=$niks"); $nikss = $check1[0]; if($epasts == $epastss){ if($niks == $nikss){ if($_POST['epasts'] == $_POST['epasts_conf']){ if($_POST['parole'] == $_POST['parole_conf']){ if(!empty($_POST['vards']) and !empty($_POST['uzvards']) and !empty($_POST['epasts']) and !empty($_POST['parole'])) { // insert 'Tagad vari ielogoties!'; } else { "Aizpildi visus laukus!<br />"; } }else{ echo "Paroles nesakrīt!<br />"; } }else{ echo "E-pasti nesakrīt!<br />"; } }else{ echo "Niks jau aizņemts!<br />"; } }else{ echo "E-pasts jau ir aizņemts!<br />"; } ?> Bet rada tikai šo tekstu E-pasts jau ir aizņemts! Esmu meiģinājis ievadīt daudzus citus variantus kuru nav datubāzē, bet rada tikai to tekstu.. Kas par problēmu? Quote Link to comment Share on other sites More sharing options...
waplet Posted November 7, 2009 Report Share Posted November 7, 2009 (edited) aa sapratu, mana vaina. tev vajag vēl apstrādām mysql datus Edited November 7, 2009 by waplet Quote Link to comment Share on other sites More sharing options...
marcis Posted November 7, 2009 Report Share Posted November 7, 2009 Drošvien tāpēc, ka neizpildās šis if's un nav jau arī nekāds brīnums, ka neizpildās... if($epasts == $epastss){ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.