Script werkt niet meer na includen header

Gestart doorJoeri12 reacties26 weergaven

13 berichten · pagina 1 van 1

Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik wil op me website de header en footer en zijbalken allemaal gaan includen en op index.php werkt het wel maar als ik hem op precies dezelfde manier in login.php zet werkt het ineens niet meer, dan krijg ik deze error:

Quote:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sharpfmm/domains/vmovie.nl/public_html/pagina/login.php:3) in /home/sharpfmm/domains/vmovie.nl/public_html/include/config.php on line 2

dit is de code van login.php
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]../include/header.php[/COLOR][COLOR= #007700]);[/COLOR]
?>

  <div id="leftside">
    <div class="leftdata">
    [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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/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]send[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        [COLOR= #0000BB]$uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE naam="[/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]naam[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/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]$uQuery[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Gebruiker bestaat niet![/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$uFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pass[/COLOR][COLOR= #007700]] ==[/COLOR] [URL="http://www.php.net/sha1"]sha1[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pass[/COLOR][COLOR= #007700]]))
            {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je bent succesvol ingelogt [/COLOR][COLOR= #007700];[/COLOR]
                [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR]
                [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rang[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rang[/COLOR][COLOR= #007700]];[/COLOR]
                [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$uFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR]
?>
en wordt binnen enkele seconden verwezen, zo niet klik dan <A HREF="/index.php">hier</A>.
<meta http-equiv="refresh" content="2;URL=/index.php" />
[COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uw wachtwoord klopt niet![/COLOR][COLOR= #007700];
            }
        }
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        ?>
        <form action="" method="post">
            <table>
                <tr>
                    <td>Naam</td>
                    <td><input type="text" name="naam" /></td>
                </tr>
                <tr>
                    <td>Wachtwoord</td>
                    <td><input type="password" name="pass" /></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" name="send" value="register" /></td>
                </tr>
            </table>
        </form>
        [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U bent al ingelogt.[/COLOR][COLOR= #007700];
}[/COLOR]
?>
    
                
        
        
        
    </div>
    </div>
  <div id="rightside">
    <div class="rightdata">
        <h2>Top</h2>
        <p>
        [COLOR= #0000BB]<?php 
        $topQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM trailers ORDER BY punten DESC LIMIT 5"[/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]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$top[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$topQuery[/COLOR][COLOR= #007700]))
        {[/COLOR]
            ?><a href="../pagina/trailer.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$top[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$top[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR] ?></a>
            <br />
            [COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}[/COLOR]
        ?>
                </p>
    </div>
    <div class="rightdata">
         <h2>Nieuwe films</h2>
        <p>
        [COLOR= #0000BB]<?php 
        $nieuwQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM trailers ORDER BY id DESC LIMIT 5"[/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]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuw[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuwQuery[/COLOR][COLOR= #007700]))
        {[/COLOR]
            ?><a href="../pagina/trailer.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuw[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuw[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR] ?></a>
            <br />
            [COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}[/COLOR]
        ?></p>   
    </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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        ?>
        <div class="rightdata">
         <h2>Mijn account</h2>
        <p>
        [COLOR= #0000BB]<?php 
        $uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/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]$u[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$reactieQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM reactie WHERE user="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$u[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$reactie[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactieQuery[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$stemmenQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM stemmen WHERE user="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$u[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$stemmen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$stemmenQuery[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$procent1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$reactie[/COLOR]/[COLOR= #0000BB]100[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$procent2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$stemmen[/COLOR]/[COLOR= #0000BB]100[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$procent1[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]$procent2[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$getal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$getal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$procent1[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]$procent2[/COLOR][COLOR= #007700];
        }[/COLOR]
        ?>
        Welkom <i><b>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$u[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?></b></i>
        <br />
        vPunten : [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$getal[/COLOR][COLOR= #007700];[/COLOR] ?>%
        <br />
        Stemmen :[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$stemmen[/COLOR][COLOR= #007700];[/COLOR] ?>
        <br />
        Reacties :[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$reactie[/COLOR][COLOR= #007700];[/COLOR] ?></p>   
    </div>
    [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
    ?>
    <div class="rightdata">
         <h2>Login</h2>
        <form action="../login.php" method="post">
        <input type="text" name="naam" />
        <br />
        <input type="password" name="pass" />
        <br />
        <input type="submit" name="send" value="login" />
        </form>
    </div>
    [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    ?>
  </div>
  <div id="footer">
    <p class="right">&copy; Joeri </p>
    </p>
  </div>
</div>
</body>
</html>
Verder is me website ineens heel sloom geworden op alle paginas ook waar ik dit niet heb toegepast. Ik dacht juist dat hij er sneller door zou worden, op internet stond dat die fout er kwam als er al iets stond voor Session_start() maar voor zover ik weet is dit niet het geval en ook niet op config.php en header.php
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zet bovenaan is session_start(); en haal het in je andere bestanden die erin geincluded worden weg
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt hij geeft nu geen error meer, moet ik dan op elke pagina session_start(); bovenaan zetten?

Heb het maar geprobeerd en volgens mij werkt het alleen heb ik nog 1 probleem nu en dat is dat het script het op 1 pagina niet meer doet.. ik kijk eerst even of ik het zelf op kan lossen en anders geef ik hier wel meer info

hmm ik heb geen idee wat de fout kan zijn want hij geeft geen error aan maar gewoon geen script terwijl die er wel staat..

Dit is me code van die pagina

[COLOR= #0000BB]<?php[/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]../include/header.php[/COLOR][COLOR= #007700]);[/COLOR]
?>

  <div id="leftside">
    <div class="leftdata">
    [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]trailer[/COLOR][COLOR= #007700]]))
    {[/COLOR]
    [COLOR= #0000BB]$trailerQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM trailers 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]trailer[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/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]$trailerQuery[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Deze video bestaat niet.[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$trailer[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$trailerQuery[/COLOR][COLOR= #007700]);[/COLOR]
        ?>
        <h2>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR] ?></h2>
        <iframe width="560" height="315" src="http://www.youtube.com/embed/[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]yt[/COLOR][COLOR= #007700]];[/COLOR] ?>" frameborder="0" allowfullscreen></iframe>
        <hr /><h5><a style="color:green;" onclick="goed([COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>)">+1</a> ~ <a style="color:red;" onclick="slecht([COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>)">-1</a>
        <br />
        [COLOR= #0000BB]<?php[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stemmen[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Er zijn nog geen stemmen uitgebracht[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]punten[/COLOR][COLOR= #007700]][/COLOR]/[COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stemmen[/COLOR][COLOR= #007700]]*[/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700])
            {[/COLOR]
                [COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]punten[/COLOR][COLOR= #007700]][/COLOR]/[COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stemmen[/COLOR][COLOR= #007700]]*[/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
            {[/COLOR]
                [COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/round"]round[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]punten[/COLOR][COLOR= #007700]][/COLOR]/[COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]stemmen[/COLOR][COLOR= #007700]]*[/COLOR][COLOR= #0000BB]10[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700]);
            }[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]/10[/COLOR][COLOR= #007700];
        }[/COLOR]
        ?>
    <div class="leftinfo">
      <p>
        <br />
        [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$trailer[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]beschrijving[/COLOR][COLOR= #007700]]);[/COLOR] ?>
      </p>

      </div>
      <hr />
     <h1>Reactie</h1>
      <div class="leftinfo" id="reactie">
      [COLOR= #0000BB]<?php
    $reactieQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM reactie WHERE t_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]trailer[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" LIMIT 5"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactie[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactieQuery[/COLOR][COLOR= #007700]))
    {[/COLOR]
        ?>
        <i><b>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$reactie[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?></b></i> zei om [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$reactie[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]date[/COLOR][COLOR= #007700]];[/COLOR] ?>
        <div class="leftinfo">
        [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactie[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR] ?>
        </div>
        [COLOR= #0000BB]<?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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/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]hoi[/COLOR][COLOR= #007700]]))
        {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Vul een bericht in[/COLOR][COLOR= #007700];
            }[/COLOR]

            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Uw reactie is geplaatst![/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO reactie (t_id,user,bericht,date) VALUES ("[/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]trailer[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]", NOW())"[/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]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            ?>
            <br />
            <br />
            <div class="leftinfo">
                <form action="" method="post">
                    <textarea name="bericht" style="max-width:100%;"></textarea><br />

                    <input type="submit" name="hoi" value="post" />
                </form>
            </div>
            [COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}
    }[/COLOR]
    ?>
    </div>
    [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    ?>
        <div id="video"></div>
        <div id="test"></div>
        [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]add[/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]add[/COLOR][COLOR= #007700]]))
        {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]yt[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]beschrijving[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
            {[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO trailers (titel,beschrijving,yt,user) 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]titel[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/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]beschrijving[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/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]yt[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/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]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Toegevoegd![/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Vul alle velden in[/COLOR][COLOR= #007700];
            }
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            ?>
            <form action="" method="post">
                <table>
                    <tr>
                        <td>Titel</td>
                        <td><input type="text" name="titel" /></td>
                    </tr>
                    <tr>
                        <td>www.youtube.com/watch?v=</td>
                        <td><input type="text" name="yt" /></td>
                    </tr>
                    <tr>
                        <td>Beschrijving</td>
                        <td><textarea name="beschrijving" style="max-width:100%;"></textarea></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" name="add" value="voeg toe" /></td>
                    </tr>
                </table>
            </form>
            [COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
        ?>
                <script type="text/javascript">
                    traileroverzicht(1);
                </script>
                [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    ?>
                <div id="test"></div>
    </div>
    </div>
  <div id="rightside">
    <div class="rightdata">
        <h2>Top</h2>
        <p>
        [COLOR= #0000BB]<?php 
        $topQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM trailers ORDER BY punten DESC LIMIT 5"[/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]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$top[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$topQuery[/COLOR][COLOR= #007700]))
        {[/COLOR]
            ?><a href="../pagina/trailer.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$top[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$top[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR] ?></a>
            <br />
            [COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}[/COLOR]
        ?>
                </p>
    </div>
    <div class="rightdata">
         <h2>Nieuwe films</h2>
        <p>
        [COLOR= #0000BB]<?php 
        $nieuwQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM trailers ORDER BY id DESC LIMIT 5"[/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]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuw[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$nieuwQuery[/COLOR][COLOR= #007700]))
        {[/COLOR]
            ?><a href="../pagina/trailer.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuw[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR] ?>">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nieuw[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR] ?></a>
            <br />
            [COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}[/COLOR]
        ?></p>   
    </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]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        ?>
        <div class="rightdata">
         <h2>Mijn account</h2>
        <p>
        [COLOR= #0000BB]<?php 
        $uQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/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]$u[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$uQuery[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$reactieQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM reactie WHERE user="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$u[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$reactie[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reactieQuery[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$stemmenQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM stemmen WHERE user="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$u[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$stemmen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$stemmenQuery[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$procent1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$reactie[/COLOR]/[COLOR= #0000BB]100[/COLOR][COLOR= #007700];[/COLOR]
        [COLOR= #0000BB]$procent2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$stemmen[/COLOR]/[COLOR= #0000BB]100[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$procent1[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]$procent2[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$getal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [COLOR= #0000BB]$getal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$procent1[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]$procent2[/COLOR][COLOR= #007700];
        }[/COLOR]
        ?>
        Welkom <i><b>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$u[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?></b></i>
        <br />
        vPunten : [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$getal[/COLOR][COLOR= #007700];[/COLOR] ?>%
        <br />
        Stemmen :[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$stemmen[/COLOR][COLOR= #007700];[/COLOR] ?>
        <br />
        Reacties :[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$reactie[/COLOR][COLOR= #007700];[/COLOR] ?></p>   
    </div>
    [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
    ?>
    <div class="rightdata">
         <h2>Login</h2>
        <form action="../pagina/login.php" method="post">
        <input type="text" name="naam" />
        <br />
        <input type="password" name="pass" />
        <br />
        <input type="submit" name="send" value="login" />
        </form>
    </div>
    [COLOR= #0000BB]<?php[/COLOR]
    [COLOR= #007700]}[/COLOR]
    ?>
  </div>
  <div id="footer">
    <p class="right">&copy; Joeri</p>
    </p>
  </div>
</div>
</body>
</html>


toevoeging op 12 maart 2012, 17:54:09:
Iemand die me kan helpen? biggrin
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bump
0
Berichten
1.631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zet anders in header.php helemaal bovenaan die
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wouterp schreef:
Zet anders in header.php helemaal bovenaan die
dat had ik eerst en toen werkte login.php niet

dit is de code van header.php als het kan helpen trouwens

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>vMovie</title>
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
            <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript">
function goed(id)
{
    $.get(../ajax/stem.php?goed=+id, function(data) {
  $(#test).html(data);
});
}
function slecht(id)
{
    $.get(../ajax/stem.php?slecht=+id, function(data) {
  $(#test).html(data);
});}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/style.css" media="screen" />

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push([_setAccount, UA-27719535-2]);
  _gaq.push([_setDomainName, vmovie.nl]);
  _gaq.push([_trackPageview]);

  (function() {
    var ga = document.createElement(script); ga.type = text/javascript; ga.async = true;
    ga.src = (https: == document.location.protocol ? https://ssl : http://www) + .google-analytics.com/ga.js;
    var s = document.getElementsByTagName(script)[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
<div id="content">
  <div id="header">
    <div class="headermenu">
      <ul>
      [COLOR= #0000BB]<?php[/COLOR] menu[COLOR= #007700]();[/COLOR] ?>
      </ul>
    </div>
    <h1>vMovie</h1>


    <h2>Trailers kijken en trailers beoordelen</h2>
  </div>
  <div id="pic"></div>


Je kan het testen op vmovie.nl met gebruikersnaam & wachtwoord : test
0
Berichten
1.631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Klopt want bij inloggen wil je een sessie creëren en dan bestaat die al dat is dan een error. Gewoon even overal neerzetten.
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
In de config wordt de sessie al gemaakt wink
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wouterp schreef:
Klopt want bij inloggen wil je een sessie creëren en dan bestaat die al dat is dan een error. Gewoon even overal neerzetten.
Dat heb ik nu dus en dat werkt niet, maar het raarste vind ik nog wel dat het niet werkt maar er ook geen error staat
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
BUMP, nog steeds niet opgelost heb geen idee waar het aan zou kunnen liggen
sorry voor 2e dubbelpost in me topic maar anders zou ik een nieuwe moeten openen met dezelfde vraag
0
Berichten
9.953
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zet eens in je script

[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/ini_set"]ini_set[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]display_errors[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Ook zie ikd it:

mysql_query("INSERT INTO trailers (titel,beschrijving,yt,user) VALUES (".mysql_real_escape_string($_POST[titel]).", ".mysql_real_escape_string($_POST[beschrijving]).", ".mysql_real_escape_string($_POST[yt]).", ".$_SESSION[uId].")")or die(mysql_error());
                echo Toegevoegd!;


die() is niet netjes.
0
Joeri

Lid · Topicstarter

Berichten
5.737
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sebastiaanh schreef:
Zet eens in je script

[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/ini_set"]ini_set[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]display_errors[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
?>
Ik heb het erin gezet en hij geeft nergens een error aan behalve als ik het helemaal bovenaan het script zet voor de session start maar die error ken ik inmiddels al yummie
Aarclay schreef:
Bovenaan:

Ook zie ikd it:

mysql_query("INSERT INTO trailers (titel,beschrijving,yt,user) VALUES (".mysql_real_escape_string($_POST[titel]).", ".mysql_real_escape_string($_POST[beschrijving]).", ".mysql_real_escape_string($_POST[yt]).", ".$_SESSION[uId].")")or die(mysql_error());
                echo Toegevoegd!;
die() is niet netjes.

Wat bedoel je met Bovenaan:
En ik zal is gaan proberen uit te zoeken of ik die haakjes netter kan doen dan als daar het probleem zou kunnen liggen
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