Hallo,
Ik heb nu dit :
Maar hij voert die $_POST[data] niet uit
Hoe weet ik dat ?
Als ik gewoon +1 doe dan werkt het wel
Dus hoe los ik dit op ?
Ik heb nu dit :
$.ajax({
type: "POST",
url: "pagina.php",
data: "data="+response,
cache: false
}); [COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]admin/include/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]data[/COLOR][COLOR= #007700]])){[/COLOR]
[COLOR= #0000BB]$adfb[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM ad_kliks WHERE titel="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]data[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]hoi[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE users SET cash=cash+"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$adfb[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]beloning[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" WHERE id="[/COLOR][COLOR= #007700].[/COLOR]id[COLOR= #007700]().[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);
}[/COLOR]
?> Maar hij voert die $_POST[data] niet uit
Hoe weet ik dat ?Als ik gewoon +1 doe dan werkt het wel
Dus hoe los ik dit op ?
