kalabox Posted August 1, 2011 Report Share Posted August 1, 2011 (edited) Sveiki, tātad nedarbojas reģistrācija uz Chrome! Uz IE un Opera viss ok.. Bet uz Chrome nekas nenotiek.. Lūk kods http://paste.php.lv/81349449edd897de72cf6af3cda5aa86?lang=php Edited August 1, 2011 by kalabox Quote Link to comment Share on other sites More sharing options...
KarlisBa Posted August 1, 2011 Report Share Posted August 1, 2011 (edited) Kā tieši izpaužas nedarbošanās? Ieteikums - tā kā tu lieto mysql, izmanto mysql_real_escape_string pirms stringu ievietošanas db. Edited August 1, 2011 by KarlisBa Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 1, 2011 Author Report Share Posted August 1, 2011 Respēktīvi ievadot reģistrācijas datus, lapa tikai refrešojas un viss, neparādās pat neviens error, piem, ka taads login jau eksistē utt.!! Quote Link to comment Share on other sites More sharing options...
briedis Posted August 1, 2011 Report Share Posted August 1, 2011 Pirmkārt, sāc ar to, ka aizvāc visus "@" operatorus. Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 1, 2011 Author Report Share Posted August 1, 2011 nomainīju uz real_ecape un sunīšus ar aizvācu Quote Link to comment Share on other sites More sharing options...
briedis Posted August 1, 2011 Report Share Posted August 1, 2011 (edited) Ieslēdz kļūdu paziņošanu, ieliekot pašā koda sākumā aiz <?php: ini_set("display_errors", true); error_reporting(E_ALL); ..kā arī uzreiz parādi to galējo kodu pēc labojumiem, lai var izsekot līdzi kas notiek (izlabo savu pirmo postu) Edited August 1, 2011 by briedis Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 1, 2011 Author Report Share Posted August 1, 2011 (edited) Nevienu kļūdu neuzrāda P.S izmainīju pirmo postu Edited August 1, 2011 by kalabox Quote Link to comment Share on other sites More sharing options...
briedis Posted August 1, 2011 Report Share Posted August 1, 2011 (edited) Labojumā neredzu kur ir ini_set un error_rep.. ? Ieliec kaut kur arī un pārbaudi, vai tiešām visi vajadzīgoe lauki ir padoti: echo "<pre>" . print_r($_POST, true) . "</pre>"; Izeja cauri VISIEM $_POST... kodā izmantotajiem laukiem, salīdzini, vai nav kaut kur kāda drukas kļūda. mysql_real.. vienmēr ir jāizmanto PAŠĀS BEIGĀS, kad liek datus kvērijā. Slikti: $text = htmlspecial..(mysql_real..()); Pareizi: $text = mysql_real(...) Edited August 1, 2011 by briedis Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 1, 2011 Report Share Posted August 1, 2011 Ne par tēmu, bet, briedi, tam print_r() otrais parametrs ir lieks. Tavā gadījumā. Quote Link to comment Share on other sites More sharing options...
briedis Posted August 1, 2011 Report Share Posted August 1, 2011 Ne par tēmu, bet, briedi, tam print_r() otrais parametrs ir lieks. Tavā gadījumā. mm, tiešām? http://codepad.org/CHIaKJRk Quote Link to comment Share on other sites More sharing options...
kalabox Posted August 1, 2011 Author Report Share Posted August 1, 2011 (edited) <pre>Array( [login] => admin [pass] => 12345 [pass1] => 12345 [email] => admin@inbox.lv [icquin] => 123456789 [wmz] => skyps [sites] => sms.lv)</pre> Edited August 1, 2011 by kalabox Quote Link to comment Share on other sites More sharing options...
briedis Posted August 1, 2011 Report Share Posted August 1, 2011 Iesaku nelietot if'os "or", "and", bet gan tradicionālos "||" un "&&", citādi var gadīties ieberzties atsevišķos gadījumos. Nākošais solis ir debugot: saliec dažādās vietās echo "kods izpildījās šeit", echo "te arī" utt. Pēc tā tu varēsi saprast, kāda ir koda izpildes gaita. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 1, 2011 Report Share Posted August 1, 2011 mm, tiešām?http://codepad.org/CHIaKJRk +1. 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.