snach15 Posted December 30, 2012 Report Share Posted December 30, 2012 Sveiki, nesanāk ielikt MySql funkciju iegš javascript .. šādi neder ... kā lai to paveic? function skatits(x) { ?> mysql_query("UPDATE script"); <? } Quote Link to comment Share on other sites More sharing options...
snach15 Posted December 30, 2012 Author Report Share Posted December 30, 2012 test.php atrodas Mysql kvērijs kurš updeito datubāzi. kā panākt lai viņš neatverot to failu test.php izpilda darbību? function skatits() { location.href='test.php'; } Quote Link to comment Share on other sites More sharing options...
101111 Posted December 30, 2012 Report Share Posted December 30, 2012 ??? Quote Link to comment Share on other sites More sharing options...
snach15 Posted December 30, 2012 Author Report Share Posted December 30, 2012 atrisināju ... <script> function skatits() { var oHead = document.getElementsByTagName('HEAD').item(0); var oScript= document.createElement("script"); oScript.type = "text/javascript"; oScript.src="test.php"; oHead.appendChild( oScript); } </script> Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 30, 2012 Report Share Posted December 30, 2012 Ko tu tur dari?! Beidz! Quote Link to comment Share on other sites More sharing options...
F3llony Posted December 30, 2012 Report Share Posted December 30, 2012 Coder, what are You doing? Coooooooder, stahp! STAAAHHHHHHHHP! NO STAHHHHPPPPPPPPP! OH CODER!!! Quote Link to comment Share on other sites More sharing options...
briedis Posted December 30, 2012 Report Share Posted December 30, 2012 Pameklē internetā, kas ir ajax. Quote Link to comment Share on other sites More sharing options...
snach15 Posted December 30, 2012 Author Report Share Posted December 30, 2012 taadi komentāri :D pff nēesmu jav nekāds koders! nāku pēc padoma un palīdzības nevis stūlbiem komentāriem .. nomierinās sikie geki! Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted December 30, 2012 Report Share Posted December 30, 2012 Quote Link to comment Share on other sites More sharing options...
mad182 Posted January 3, 2013 Report Share Posted January 3, 2013 Tas ko tu dari ir līdzvērtīgs skrūves dzīšanai sienā ar āmuru. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 3, 2013 Report Share Posted January 3, 2013 PHP? 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.