EdgarsK Posted March 2, 2010 Report Share Posted March 2, 2010 nesmejamies, bet tā nu viņš ir. index.php <? mysql_connect("localhost","root",""); mysql_select_db("dtbz"); mysql_query("insert into test (a,b) values('743029','578239')"); ?> ko esmu noziedzies ka man 1 tiek saglabāts datubāzē 2 reizes? Sajūta itkā būtu 2x refresh page uztaisijis. Daries kā gribi bet vislaik dublē insertu, ko darīt? Quote Link to comment Share on other sites More sharing options...
2easy Posted March 2, 2010 Report Share Posted March 2, 2010 aizvāc triggerus Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted March 2, 2010 Author Report Share Posted March 2, 2010 chivo? Quote Link to comment Share on other sites More sharing options...
briedis Posted March 2, 2010 Report Share Posted March 2, 2010 chivo? nezini, kas ir trigeris? :) (nezinu kāpēc 2easy domā, ka te trigeris pie vainas) :D Gadījumā tajā lapā nav googles reklāmas? :D Quote Link to comment Share on other sites More sharing options...
2easy Posted March 2, 2010 Report Share Posted March 2, 2010 (nezinu kāpēc 2easy domā, ka te trigeris pie vainas) :D es tikai kko iespamoju, lai iekustinātu topiku ^^ redz kā uzreiz idejas parādījās :)) Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted March 2, 2010 Author Report Share Posted March 2, 2010 :) http://localhost/index.php index.php <? mysql_connect("localhost","root",""); mysql_select_db("dtbz"); mysql_query("insert into test (a,b) values('743029','578239')"); ?> kur mes seit redzam reklamu? :) tas ir vienigais kas ir index faila :) un nekadi trigeri nav. Quote Link to comment Share on other sites More sharing options...
briedis Posted March 2, 2010 Report Share Posted March 2, 2010 No dažādiem pārlūkiem mēģināji? Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted March 2, 2010 Author Report Share Posted March 2, 2010 aha :) not dumb, tapat visslaik dublejas Quote Link to comment Share on other sites More sharing options...
briedis Posted March 2, 2010 Report Share Posted March 2, 2010 aha :) not dumb, tapat visslaik dublejas Vari atrast gadījumu, kad nedublējas? :) (citā tabulā, db spraužot) Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted March 2, 2010 Author Report Share Posted March 2, 2010 divaini, bet dulbejas visur. Quote Link to comment Share on other sites More sharing options...
briedis Posted March 2, 2010 Report Share Posted March 2, 2010 Uzliec unikālo atslēgu. Kļūdu izmet? vai tas otrs inserts notiek tev neredzit.. Paskaties apache acess logu, kas tur notiek... Quote Link to comment Share on other sites More sharing options...
2easy Posted March 2, 2010 Report Share Posted March 2, 2010 es domāju tajā datubāzē ir ieperinājies poltergeists Quote Link to comment Share on other sites More sharing options...
Pentiums Posted March 2, 2010 Report Share Posted March 2, 2010 Quote Link to comment Share on other sites More sharing options...
2easy Posted March 2, 2010 Report Share Posted March 2, 2010 tipa tavo ^^ Quote Link to comment Share on other sites More sharing options...
Pentiums Posted March 5, 2010 Report Share Posted March 5, 2010 Intereses pēc gribu zināt.. problēmu atrisināji? Kur bija problēma? 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.