Shout lijn error Mysql

Gestart doorTmeiland2 reacties15 weergaven

3 berichten · pagina 1 van 1

Tmeiland

Lid · Topicstarter

Berichten
450
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wie kan me helpen,
Ik heb een Shout line error op Line 121
Dit krijg ik als ik op t shout Page ben; Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/djpaneel/requests.php on line 121
dit staat er op line 121: while($fetch = mysql_fetch_array($sql))

Hele Script;

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/defined"]defined[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"kristall"[/COLOR][COLOR= #007700]))
{[/COLOR]
     [URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
    [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700]);[/COLOR]
    loginerror[COLOR= #007700]();[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    login[COLOR= #007700]();
}[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
        <span class="title">Verzoek systeem</span><br />Welkom op het verzoek lijn, hier kunt u uw aanvragen en berichten te verwijderen met de optie om meerdere berichten tegelijk verwijderen!
        <form action="?view=requests&act=delete" method="post">
        <br />
        <input type="submit" name="submit" value="Delete selected requests">
        <hr size="1">
        <a href="?view=requests&type=Song Request">Request</a> | <a href="?view=requests&type=Listener Shoutout">Shouts</a> | <a href="?view=requests&type=Competition Entry">Competitie</a> | <a href="?view=requests&type=all">Alle verzoeken</a>
        <hr size="1">"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/switch"]switch[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"act"[/COLOR][COLOR= #007700]])
{
    case[/COLOR] [COLOR= #DD0000]"delete"[/COLOR][COLOR= #007700]:[/COLOR]
        [URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$key[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$value[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$value[/COLOR][COLOR= #007700]))
            {}[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT `dj` FROM `requests` WHERE `id` = $value"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #DD0000]"1"[/COLOR][COLOR= #007700])
                {[/COLOR]
                [COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"dj"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_username"[/COLOR][COLOR= #007700]] ||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Senior DJ"[/COLOR] [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Administrator"[/COLOR] [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Super Administrator"[/COLOR][COLOR= #007700])
                {[/COLOR]
                    [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM `requests` WHERE `id` = $value"[/COLOR][COLOR= #007700]);
                }[/COLOR]
                [URL="http://www.php.net/else"]else[/URL]
                [COLOR= #007700]{[/COLOR]
                    notice[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Requests not deleted."[/COLOR][COLOR= #007700]);[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"One or more requests have not been deleted due do you not being the rightful owner of them<br />
                    You are now being taken back to the main request line, if youd prefer not to wait, please click <a href="?view=requests">here</a><meta http-equiv="refresh" content="2;url=?view=requests">"[/COLOR][COLOR= #007700]);[/COLOR]
                    endnotice[COLOR= #007700]();
                }
                }
            }
        }[/COLOR]
        notice[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Requests deleted."[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"The requests you selected have been deleted<br />
        You are now being taken back to the main request line, if youd prefer not to wait, please click <a href="?view=requests">here</a><meta http-equiv="refresh" content="8;url=?view=requests">"[/COLOR][COLOR= #007700]);[/COLOR]
        endnotice[COLOR= #007700]();[/COLOR]
    [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
    
    case[/COLOR] [COLOR= #DD0000]"reportform"[/COLOR][COLOR= #007700]:[/COLOR]
        [COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] clean[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT `dj` FROM `requests` WHERE `id` = $id"[/COLOR][COLOR= #007700]));[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"dj"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_username"[/COLOR][COLOR= #007700]] ||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_username"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Administrator"[/COLOR] [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Super Administrator"[/COLOR][COLOR= #007700])
        {[/COLOR]
            notice[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Are You Sure?"[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Are you sure you wish to report this Request?<br /><br />
            <a href="?view=requests&act=report&id=$id">Im Sure, Report the Request</a><br />
            <a href="?view=requests&act=viewform">Im Not Sure, Take me Back</a>"[/COLOR][COLOR= #007700]);[/COLOR]
            endnotice[COLOR= #007700]();
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL] 
        [COLOR= #007700]{[/COLOR]
            notice[COLOR= #007700]([/COLOR][COLOR= #DD0000]"That isnt your request"[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"That isnt your request to view. You are now being taken back to the Request System.<br /><br />
            If youd prefer not to wait, please click <a href="?view=requests">here</a><meta http-equiv="refresh" content="8;url=?view=requests">"[/COLOR][COLOR= #007700]);[/COLOR]
            endnotice[COLOR= #007700]();
        }[/COLOR]
    [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
    
    case[/COLOR] [COLOR= #DD0000]"report"[/COLOR][COLOR= #007700]:[/COLOR]
        [COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] clean[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT `dj` FROM `requests` WHERE `id` = $id"[/COLOR][COLOR= #007700]));[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"dj"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_username"[/COLOR][COLOR= #007700]] ||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_username"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Administrator"[/COLOR] [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Super Administrator"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE `requests` SET `reported` = 1 WHERE `id` = $id"[/COLOR][COLOR= #007700]);[/COLOR]
            notice[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Private Message Reported"[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"The Request you selected, with id tag $id, has been successfully reported. An Administrator will view this Request and take action accordingly. You are now being taken back to the Request system.<br /><br />
            If youd prefer not to wait, please click <a href="?view=requests">here</a><meta http-equiv="refresh" content="8;url=?view=requests">"[/COLOR][COLOR= #007700]);[/COLOR]
            endnotice[COLOR= #007700]();
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL] 
        [COLOR= #007700]{[/COLOR]
            notice[COLOR= #007700]([/COLOR][COLOR= #DD0000]"That isnt your request"[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"That isnt your request to view. You are now being taken back to the Request System.<br /><br />
            If youd prefer not to wait, please click <a href="?view=requests">here</a><meta http-equiv="refresh" content="8;url=?view=requests">"[/COLOR][COLOR= #007700]);[/COLOR]
            endnotice[COLOR= #007700]();
        }[/COLOR]
    [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
    
    default:[/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]"type"[/COLOR][COLOR= #007700]]))
        {[/COLOR]
            [COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]=[/COLOR] clean[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"type"[/COLOR][COLOR= #007700]]);
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL] 
        [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"all"[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"DJ"[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]"all"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `requests` WHERE `dj` = {$_SESSION["[/COLOR]kristall_username[COLOR= #DD0000]"]} AND `type` = $type AND `reported` = 0 ORDER BY `id` ASC"[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"DJ"[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"all"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `requests` WHERE `dj` = {$_SESSION["[/COLOR]kristall_username[COLOR= #DD0000]"]} AND `reported` = 0 ORDER BY `id` ASC"[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]"DJ"[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]"all"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `requests` WHERE `type` = $type ORDER BY `id` ASC"[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL] 
        [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `requests` ORDER BY `id` ASC"[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]))
        {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]"DJ"[/COLOR][COLOR= #007700])
            {[/COLOR]

                [COLOR= #0000BB]$ips[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #DD0000]"<b>IP:</b> {$fetch["[/COLOR]ip[COLOR= #DD0000]"]}"[/COLOR][COLOR= #007700]);
            }[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"reported"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"1"[/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Administrator"[/COLOR] [COLOR= #007700]||[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"kristall_level"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"Super Administrator"[/COLOR][COLOR= #007700])
                {[/COLOR]
                    [COLOR= #0000BB]$colour[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]" background: #fff2f2;"[/COLOR][COLOR= #007700];
                }[/COLOR]
                [URL="http://www.php.net/else"]else[/URL] 
                [COLOR= #007700]{[/COLOR]
                    [COLOR= #0000BB]$colour[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];
                }
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL] 
            [COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$colour[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]<table border="0" width="100%" cellpadding="3" style="border-collapse: collapse;[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$colour[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" cellspacing="2">
    <tr>
        <td width="2%" rowspan="2"><input type="checkbox" class="rofl" name="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"></td>
        <td colspan="2">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td width="35%" valign="top"><b>van:</b> [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"sender"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</td>
                <td width="35%" valign="top"><b>Type:</b> [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"type"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</td>
                <td width="30%">
                [/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$ips[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #DD0000]
                </td>
            </tr>
            <tr>
                <td width="35%" valign="top"><b>tijd:</b> [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"date"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</td>
                <td width="35%" valign="top"><b>Report:</b> <a href="?view=requests&act=reportform&id=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"id"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">Klik om te reporten</a></td>
                <td width="30%">
                [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$sentto[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]
                </td>
            </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td valign="top"><b>Bericht:</b></td>
        <td width="90%" valign="top">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"message"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</td>
    </tr>
</table><hr size="1">[/COLOR][COLOR= #007700]);
        }[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"</form>"[/COLOR][COLOR= #007700]);
}[/COLOR]
?>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
heb je wel verbinding met mysql?
(config.php ofzoyummie)
0
Berichten
212
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, want anders zou hij al eerder een error hebben gehad.

De fout is gewoon dat je query is mislukt, dus een verkeerde syntax. Heb nog niet gekenen wat, maar ik denk dat je van {$_SESSION["sessie"]} moet maken ".$_SESSION["sessie"]."
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