Error, kan iemand mij helpen,

Gestart doorJordyvc6 reacties39 weergaven

7 berichten · pagina 1 van 1

Jordyvc

Lid · Topicstarter

Berichten
6.037
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,
ik heb deze error:

Parse error: syntax error, unexpected < in /home/jordyvc/domains/jordyvs.largeweb.nl/public_html/jvc/me.php on line 28


En dit is mijn script:

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jordy Van Camp :: Home</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
[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]id[/COLOR][COLOR= #007700]]))
    {[/COLOR]
    
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]]))
        {[/COLOR]
        
            [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                SELECT
                                *
                                FROM
                                leden
                                WHERE
                                id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
                                "[/COLOR][COLOR= #007700]);[/COLOR]
                            
            [COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);

<[/COLOR]table border[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"5"[/COLOR][COLOR= #007700]>
   <[/COLOR]tr[COLOR= #007700]>
     <[/COLOR]td[COLOR= #007700]>[/COLOR]
           [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Welkom, <b>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</b><br /><br /><a href=?a=loguit>Uitloggen</a>"[/COLOR][COLOR= #007700];
     <[/COLOR]/td[COLOR= #007700]>
  <[/COLOR]/tr[COLOR= #007700]>
<[/COLOR]/table[COLOR= #007700]>[/COLOR]

            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=ticket.php>&nbsp Ticket aanmaken</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=factuur.php>&nbsp Factuur overzicht</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=aankopen.php>&nbsp Mijn aankopen</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=gegevens.php>&nbsp Mijn gegevens</a>"[/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][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"loguit"[/COLOR][COLOR= #007700])
            {[/COLOR]
            
                [URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Succesvol uitgelogd!<meta http-equiv="refresh" content="1;URL=index.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]"Je kan deze pagina niet bezoeken. Je kan deze pagina alleen bezoeken als je ingelogd bent!"[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    
?>
</body>
</html>


Weet iemand hoe ik deze wegkrijg? Alvast bedankt
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jordyvc schreef:
Hey,
ik heb deze error:

Parse error: syntax error, unexpected < in /home/jordyvc/domains/jordyvs.largeweb.nl/public_html/jvc/me.php on line 28
En dit is mijn script:

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jordy Van Camp :: Home</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
[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]id[/COLOR][COLOR= #007700]]))
    {[/COLOR]
    
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]]))
        {[/COLOR]
        
            [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                SELECT
                                *
                                FROM
                                leden
                                WHERE
                                id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
                                "[/COLOR][COLOR= #007700]);[/COLOR]
                            
            [COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
?>
<table border="5">
   <tr>
     <td>
[COLOR= #0000BB]<?php[/COLOR]
           [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Welkom, <b>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</b><br /><br /><a href=?a=loguit>Uitloggen</a>"[/COLOR][COLOR= #007700];[/COLOR]
?>
     </td>
  </tr>
</table>
[COLOR= #0000BB]<?php[/COLOR]

            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=ticket.php>&nbsp Ticket aanmaken</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=factuur.php>&nbsp Factuur overzicht</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=aankopen.php>&nbsp Mijn aankopen</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=gegevens.php>&nbsp Mijn gegevens</a>"[/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][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"loguit"[/COLOR][COLOR= #007700])
            {[/COLOR]
            
                [URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Succesvol uitgelogd!<meta http-equiv="refresh" content="1;URL=index.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]"Je kan deze pagina niet bezoeken. Je kan deze pagina alleen bezoeken als je ingelogd bent!"[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    
?>
</body>
</html>


Weet iemand hoe ik deze wegkrijg? Alvast bedankt

Zoiets moet het zijn?
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
verander : in
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maartenl schreef:
verander : in
Dat gaat dus echt niet werkenwink
Wat je doet is je probeert een tabel neer te zetten, maar je sluit PHP niet af, dus denkt hij dat het een PHP functie is, die niet bestaat -> error
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dus wat ik heb verbeterd klopt, toch Eleky? xd
0
Jordyvc

Lid · Topicstarter

Berichten
6.037
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Fassdfds schreef:
Eerdere citaten tonen
Jordyvc schreef:
Hey,
ik heb deze error:

Parse error: syntax error, unexpected < in /home/jordyvc/domains/jordyvs.largeweb.nl/public_html/jvc/me.php on line 28


En dit is mijn script:

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jordy Van Camp :: Home</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
[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]id[/COLOR][COLOR= #007700]]))
    {[/COLOR]
    
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]]))
        {[/COLOR]
        
            [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                SELECT
                                *
                                FROM
                                leden
                                WHERE
                                id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
                                "[/COLOR][COLOR= #007700]);[/COLOR]
                            
            [COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
?>
<table border="5">
   <tr>
     <td>
[COLOR= #0000BB]<?php[/COLOR]
           [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Welkom, <b>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</b><br /><br /><a href=?a=loguit>Uitloggen</a>"[/COLOR][COLOR= #007700];[/COLOR]
?>
     </td>
  </tr>
</table>
[COLOR= #0000BB]<?php[/COLOR]

            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=ticket.php>&nbsp Ticket aanmaken</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=factuur.php>&nbsp Factuur overzicht</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=aankopen.php>&nbsp Mijn aankopen</a>"[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <a href=gegevens.php>&nbsp Mijn gegevens</a>"[/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][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]a[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"loguit"[/COLOR][COLOR= #007700])
            {[/COLOR]
            
                [URL="http://www.php.net/session_destroy"]session_destroy[/URL][COLOR= #007700]();[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Succesvol uitgelogd!<meta http-equiv="refresh" content="1;URL=index.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]"Je kan deze pagina niet bezoeken. Je kan deze pagina alleen bezoeken als je ingelogd bent!"[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    
?>
</body>
</html>


Weet iemand hoe ik deze wegkrijg? Alvast bedankt
Zoiets moet het zijn?

Het werkt nu wel thumbsup
Maartenl schreef:
verander : in
Had ik al eens geprobeerd, maar het werkt nu, toch bedankt!
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Graag gedaan! wink
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