eT` Posted February 25, 2010 Report Share Posted February 25, 2010 (edited) mēģini: <? include('config.php'); if(isset($_POST["niks"]) && isset($_POST["skype"]) && isset($_POST["team"]) && $_POST["niks"] != "" && $_POST["skype"] != "" && $_POST["team"] != "") { $niks = htmlspecialchars($_POST['niks']); $skype = htmlspecialchars($_POST['skype']); $team = htmlspecialchars($_POST['team']); mysql_query("INSERT INTO komandas(niks, skype, komanda) VALUES('$niks', '$skype', '$team')") or die(mysql_error()); echo "Viss pievienots!"; } else { echo "ERROR! Now you are gonna die!"; } ?> <form method="post"> Niks <input name='niks' type='text'><br/> Skype <input name='skype' type='text'><br/> Komanda <select name='team'> <option value='komanda1'>Komanda1</option> <option value='komanda2'>Komanda2</option> </select> <input type='submit' value='Ievietot'> </form> Edited February 25, 2010 by eT` Quote Link to comment Share on other sites More sharing options...
krisis32 Posted February 26, 2010 Author Report Share Posted February 26, 2010 Nestrādā! :( Quote Link to comment Share on other sites More sharing options...
anonīms Posted February 26, 2010 Report Share Posted February 26, 2010 (edited) Maz jēga viņam palīdzēt? Atklāti parāda, ka viņš neko negrib darīt, bet gaida, kad viņam izdarīs. kriksis32, kā jau iepriekšs minēja, iekšs posta ieliec print_r($_POST); EDIT: A moška tev ir .html paplašinājums? Edited February 26, 2010 by anonīms Quote Link to comment Share on other sites More sharing options...
chizijs Posted February 26, 2010 Report Share Posted February 26, 2010 amm.. varbūt noamini <? uz <?php Quote Link to comment Share on other sites More sharing options...
eT` Posted February 26, 2010 Report Share Posted February 26, 2010 uztaisi toč, print_r paksaties, ko neizvada. tev DB tajā tabulā ir tādā secībā? man reiz nenostrādāja kad mēģinu sajaukt secību ( sen, sen... ) Quote Link to comment Share on other sites More sharing options...
SliDerS Posted March 23, 2010 Report Share Posted March 23, 2010 Kapēc jūs nevarat visu vesalu ielikt uzreiz ar to kur DB_name | Username | Password vesalu script.. ? :D Quote Link to comment Share on other sites More sharing options...
2easy Posted March 23, 2010 Report Share Posted March 23, 2010 Kapēc jūs nevarat visu vesalu ielikt uzreiz ar to kur DB_name | Username | Password vesalu script.. ? :D laikam tāpē, ka visi ir slinki un/vai skaudīgi un ir žēl otram visu uzrakstīt priekšā :D:D:D tu jau laikam gan visiem pēc kārtas palīdzi jebko, ko vien tev kāds paprasa izdarīt, vai ne? ;) Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 23, 2010 Report Share Posted March 23, 2010 ta kods jau tika vinjam iedots ;) tikai aizmirsa pateikt ka pie DB vajadzetu arii pieslegties ;) Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted March 23, 2010 Report Share Posted March 23, 2010 Vīri, vīri, vai tāpēc mēs caurām naktīm urbjamies, lai parādītu savas zināšanas troļļiem? Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 23, 2010 Report Share Posted March 23, 2010 Mr.Key -> nu kdreiz jau var 'paniekoties ar placeniishiem' ;) 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.