coordinates

Gestart doorSmiegles22 reacties50 weergaven

23 berichten · pagina 2 van 2

Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
INSERT INTO coordinates click = ".$_POST[x]."
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat is dat voor faalquery? emo
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oh oops emoIk zat met update en insert door elkaar emo
INSERT INTO coordinates (click) VALUES (".$_POST[x].")
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700]]))
    {[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO coordinates (click) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")."[/COLOR]x[COLOR= #DD0000]".mysql_real_escape_string($_POST[y])."") or die(mysql_error());
}
?>
  <style>body {background: url(/gamebg.PNG); }
div { padding: -10px; }</style>
  <script src="http://code.jquery.com/jquery-1.4.4.js"></script>
  <div id="log"></div>
<script>$(document).bind([/COLOR]mousemove[COLOR= #DD0000],function(e){ 
            $("#log").text("e.pageX: " + e.pageX + ", e.pageY: " + e.pageY); 
});
$(document).click(function(e){
            $.post([/COLOR]index[COLOR= #007700].[/COLOR]php[COLOR= #007700]?[/COLOR]geklikt[COLOR= #DD0000], {[/COLOR]x[COLOR= #DD0000]: e.pageX, [/COLOR]y[COLOR= #007700]:[/COLOR] e[COLOR= #007700].[/COLOR]pageY[COLOR= #007700]}, function([/COLOR]d[COLOR= #007700]){[/COLOR]
                [COLOR= #FF8000]// D is wat er dan op de pagina staat[/COLOR]
            [COLOR= #007700]});});[/COLOR]
</script>
<table border="0">
<tr>


zo?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700]]))
    {[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO coordinates (click) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"x"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]y[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR]
?>
  <style>body {background: url(/gamebg.PNG); }
div { padding: -10px; }</style>
  <script src="http://code.jquery.com/jquery-1.4.4.js"></script>
  <div id="log"></div>
<script>$(document).bind(mousemove,function(e){ 
            $("#log").text("e.pageX: " + e.pageX + ", e.pageY: " + e.pageY); 
});
$(document).click(function(e){
            $.post(index.php?geklikt, {x: e.pageX, y: e.pageY}, function(d){
                // D is wat er dan op de pagina staat
            });});
</script>
<table border="0">
<tr>
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik probeer het zo De server ligt er weer uitsadley
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Pm me, misschien kan ik je helpen
0
Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
We hebben iets geprobeerd is Helaas niet gelukt.
weet iemand het?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren