Script stuurt niet door naar website PHP

Gestart doorMertdelft22 reacties30 weergaven

23 berichten · pagina 1 van 2

Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik was bezig met mijn systeem en uit het niets deed mijn door stuurt scrip het niet meer wat is er fout aan?

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [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]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]))) {[/COLOR]

[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE websites SET klikjes = klikjes+1 WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]
[COLOR= #0000BB]$uLink[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM websites WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]

[COLOR= #0000BB]$uGa[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uLink[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Location: http://"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$uGa[/COLOR][COLOR= #007700]->[/COLOR]website[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"U wordt doorgestuurd"[/COLOR][COLOR= #007700]);
}[/COLOR]
?>


He update de klikjes wel, Maar stuurt niet door
0
Marv

Lid

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
maak van die exit eens echoU Wordt doorgestuurd;
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marvinguich schreef:
maak van die exit eens echoU Wordt doorgestuurd;
Nope, Luk ook niet
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [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]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]))) {[/COLOR]

[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE websites SET klikjes = klikjes+1 WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]
[COLOR= #0000BB]$uLink[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM websites WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]

[COLOR= #0000BB]$uGa[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uLink[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Location: http://$uGa->website"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"U wordt doorgestuurd"[/COLOR][COLOR= #007700]);
}[/COLOR]
?>


aub
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [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]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]))) {[/COLOR]

[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE websites SET klikjes = klikjes+1 WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]
[COLOR= #0000BB]$uLink[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM websites WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/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]

[COLOR= #0000BB]$uGa[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uLink[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Location: http://$uGa->website"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"U wordt doorgestuurd"[/COLOR][COLOR= #007700]);
}[/COLOR]
?>
aub

Dat lukt ook niet, Misschien ik heb he ook even gewoon normaal als klik.php?id=4 gedaan maar stuurt ook niet door te punten komen er wel bij en dit is hoe ik het gebruik:

[spoiler]<a href="klik.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$Link[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<img src=""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$Link[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]afbeelding[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"">"[/COLOR][COLOR= #007700];[/COLOR] ?>[/spoiler]
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
en als je er ob_start(); boven pleurt?

toevoeging op 7 januari 2013, 10:42:32:
beveilig de querys trouwens ff:

mysql_query("UPDATE websites SET klikjes = klikjes+1 WHERE id = ".mysql_real_escape_string($_GET[id])."") or die(mysql_error());
$uLink = mysql_query("SELECT * FROM websites WHERE id = ".mysql_real_escape_string($_GET[id])."") or die(mysql_error());
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
en als je er ob_start(); boven pleurt?
toevoeging op 7 januari 2013, 10:42:32:
beveilig de querys trouwens ff:

mysql_query("UPDATE websites SET klikjes = klikjes+1 WHERE id = ".mysql_real_escape_string($_GET[id])."") or die(mysql_error());
$uLink = mysql_query("SELECT * FROM websites WHERE id = ".mysql_real_escape_string($_GET[id])."") or die(mysql_error());


Oh dankjewel had er niet aan gedacht en er komt dan error bij line 10

header("Location: http://$uGa->website");


Catchable fatal error: Object of class stdClass could not be converted to string in C:xampphtdocsklik.php on line 10
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
En als je dan die
header("Location: http://".$uGa->website);

probeert?
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
En als je dan die
header("Location: http://".$uGa->website);

probeert?
Ook niet normaal moet die werken
0
Marv

Lid

Berichten
3.092
Reputatie
1
Punten
0,21
Lid sinds
Laatst gezien
Mertdelft schreef:
Eerdere citaten tonen
Xjessex schreef:
En als je dan die
header("Location: http://".$uGa->website);

probeert?

Ook niet normaal moet die werken
Website in de database is wel goed? Geen http://http:// ofzo?
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marvinguich schreef:
Eerdere citaten tonen
Mertdelft schreef:
Eerdere citaten tonen
Xjessex schreef:
En als je dan die
header("Location: http://".$uGa->website);

probeert?

Ook niet normaal moet die werken
Website in de database is wel goed? Geen http://http:// ofzo?
Nee daarvoor heb ik str_replace
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Mertdelft schreef:
Eerdere citaten tonen
Marvinguich schreef:
Eerdere citaten tonen
Mertdelft schreef:
Eerdere citaten tonen
Xjessex schreef:
En als je dan die
header("Location: http://".$uGa->website);

probeert?

Ook niet normaal moet die werken
Website in de database is wel goed? Geen http://http:// ofzo?
Nee daarvoor heb ik str_replace
en als je de link is:
website.nl?frame=http://google.nl

Dan doet hij het dus niet? wink Want hij stript http://
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
Eerdere citaten tonen
Mertdelft schreef:
Eerdere citaten tonen
Marvinguich schreef:
Eerdere citaten tonen
Mertdelft schreef:
Eerdere citaten tonen
Xjessex schreef:
En als je dan die
header("Location: http://".$uGa->website);

probeert?

Ook niet normaal moet die werken
Website in de database is wel goed? Geen http://http:// ofzo?
Nee daarvoor heb ik str_replace
en als je de link is:
website.nl?frame=http://google.nl

Dan doet hij het dus niet? wink Want hij stript http://
Hoe moet ik frame gebruiken?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
0
Mertdelft

Lid · Topicstarter

Berichten
414
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Xjessex schreef:
Ook niet
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