Wat voor fout is dit?

Gestart doorBoude30 reacties63 weergaven

31 berichten · pagina 2 van 3

Tom

Lid

Berichten
3.868
Reputatie
0
Punten
0,02
Lid sinds
Laatst gezien
je hebt een variabel voor het checken of die hem verzend neergezet, zet hem er nu is achter.
0
Boude

Lid · Topicstarter

Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat bedoel je?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Dat is niet regel 1 t/m 15 van t script wat wordt uitgevoerd. emo
0
Boude

Lid · Topicstarter

Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
if(isset($_GET[ad]) && isset($_GET[id]))
{
    $row = mysql_num_rows(mysql_query("SELECT 1 FROM system_doe_ads WHERE id = ". mysql_real_escape_string($_GET[ad]) ." AND actief = 2")) or trigger_error(mysql_error());
    if($row == 1)
    {
        $row2 = mysql_num_rows(mysql_query("SELECT 1 FROM member_accounts WHERE uId = ". mysql_real_escape_string($_GET[id]) ."")) or trigger_error(mysql_error());
        if($row2 == 1)
        {
            $row3 = mysql_num_rows(mysql_query("SELECT 1 FROM system_proxy WHERE ip = ". $_SERVER[REMOTE_ADDR] ."")) or trigger_error(mysql_error());
            if($row3 == 1)
            {
                $fetch = mysql_fetch_assoc(mysql_query("SELECT lidid, bedrag, url FROM system_doe_ads WHERE id = ". mysql_real_escape_string($_GET[ad]) ."")) or trigger_error(mysql_error());
                $row4 = mysql_num_rows(mysql_query("SELECT 1 FROM member_accounts WHERE uId = ". $fetch[lidid] ."")) or trigger_error(mysql_error());
                if($row4 == 1)
                {


Dit wel toch..
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Nee.

doeads.php regel 1 t/m 15, zo moeilijk is dat toch niet?
0
Boude

Lid · Topicstarter

Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nou lennard voor de 3e keer post ik hier regel 1 t/m 17 van doeads.php

<div class="midhead">Doe-Advertentie</div>
[COLOR= #0000BB]<?php[/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]ad[/COLOR][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]
    [COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT 1 FROM system_doe_ads WHERE id = "[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ad[/COLOR][COLOR= #007700]]) .[/COLOR][COLOR= #DD0000]" AND actief = 2"[/COLOR][COLOR= #007700]))[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
    {[/COLOR]
        [COLOR= #0000BB]$row2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT 1 FROM member_accounts WHERE uId = "[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][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/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row2[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$row3[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT 1 FROM system_proxy WHERE ip = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]))[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row3[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
            {[/COLOR]
                [COLOR= #0000BB]$fetch[/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 lidid, bedrag, url FROM system_doe_ads WHERE id = "[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ad[/COLOR][COLOR= #007700]]) .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]))[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                [COLOR= #0000BB]$row4[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT 1 FROM member_accounts WHERE uId = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]lidid[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]))[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row4[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
                {[/COLOR]
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Boude schreef:
voor de 3e keer
Wijs even de 1e en 2e keer aan waar je hem in dit topic gepost hebt dan.

Wordt ie geïncluded?
0
Boude

Lid · Topicstarter

Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Op pagina 1 en op deze pagina 2 keer. Maarja maakt niet uit lennard..

Nee hij wordt nu geïncluded.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Op pagina 1 nadat je hem hebt aangepast ja. Maarja maakt niet uit. biggrin
Als hij niet wordt geïncluded dan is het niet dat bestand, want dan zou je databasefouten krijgen.
Geef eens een link naar waar hij wel fouten geeft?
0
Boude

Lid · Topicstarter

Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@lennaard

Ik snap jou niet helemaal jij wilt nu een pagina hebben waar hebben waar wel fouten mee geeft.

Ik heb mis ook wat verkeerds gezegd want hij zit in gls2 dus het bestand wordt wel geinclude in de layout als het waren.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ja oke, maar welke pagina bezoek jij waar je die fout ziet?
Ik wil m zelf zien. emo
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
"Je klikt via een proxy dat mag niet er wordt dus een repport naar de admin gestuurd."emo?

Kun je screenshot maken van je scherm?
0
Boude

Lid · Topicstarter

Berichten
2.837
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Afbeelding
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Pff, je errorsysteem klopt gewoon niet.
Met trigger_error() gooi je een error met de inhoud van mysql_error() maar die bestaat na mysql_num_rows() niet meer volgens mij.
SELECT 1 FROM system_proxy WHERE ip = jouw ip
voer die eens in in phpmyadmin, wat krijg je dan?
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