pagina

Gestart doorOne2xs12 reacties35 weergaven

13 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
ik heb nu dit:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] page[COLOR= #007700]([/COLOR][COLOR= #0000BB]$txt[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$name[/COLOR][COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/stristr"]stristr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$txt[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$name[/COLOR][COLOR= #007700]) ==[/COLOR] true[COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/return"]return[/URL] TRUE[COLOR= #007700];
    }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/return"]return[/URL] FALSE[COLOR= #007700];
    }
}[/COLOR]
?>


en dit:

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #DD0000].
if(page(htmlentities($online[[/COLOR]uPage[COLOR= #DD0000]]),[/COLOR]online[COLOR= #DD0000] == true)
{
echo[/COLOR]WORKS[COLOR= #DD0000];
}
else
{
echo[/COLOR]WORKS NOT[COLOR= #DD0000];
}
.[/COLOR]
?>


en ik krijg dit:
Parse error: syntax error, unexpected T_IF in /home/fmgroup/public_html/linspin.nl/online.php on line 17

LINE 17:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]page[COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uPage[/COLOR][COLOR= #007700]]),[/COLOR][COLOR= #DD0000]online[/COLOR] [COLOR= #007700]==[/COLOR] true[COLOR= #007700]){[/COLOR]
?>


ik heb ongeveer dit gevolgd:
http://nl.php.net/manual/en/function.stristr.php
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
if(page((htmlentities($online[uPage]),online) == true){
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
De code-highlighter laat al zien waar je fout zit emo+ Dat van luuk klopt ook, daar keek ik eventjes overheen
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
if(page(htmlentities($online[uPage]),online) == true){
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Erik, reageer dan niet yummie
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Werkt nog niet dus hier even helemaal
PS:
@shahiem niet jatten frown
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"inc/functies.php"[/COLOR][COLOR= #007700]);[/COLOR]
boven[COLOR= #007700]([/COLOR][COLOR= #DD0000]Online leden[/COLOR][COLOR= #007700]);[/COLOR]
online[COLOR= #007700]([/COLOR][COLOR= #DD0000]1[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$online_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `member_online` WHERE DATE_ADD(uLast, INTERVAL 150 SECOND) > NOW() ORDER BY `uLast` DESC"[/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]$online_queryl[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `gast_online` WHERE DATE_ADD(uLast, INTERVAL 150 SECOND) > NOW() ORDER BY `uLast` DESC"[/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][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online_query[/COLOR][COLOR= #007700]) !=[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]||[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online_queryl[/COLOR][COLOR= #007700]) !=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<table><tr><td><strong>Gebruikersnaam:</strong></td><td><strong>Laatst gezien:</strong></td><td><strong>Locatie:</strong></td></tr>[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online_query[/COLOR][COLOR= #007700]))
        {[/COLOR]
                        [COLOR= #0000BB]$sq[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM member_accounts WHERE uId = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$online[/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/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sq[/COLOR][COLOR= #007700]))
                        {[/COLOR]
                                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<tr><td style="width: 150px;"><a href="profiel?id=[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]"><span style="color:[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uCol[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000];font-weight: bold;width: 150px;">[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uName[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</span></a></td><td>[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uLast[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</td><td><a href="
                                [/COLOR][COLOR= #007700].[/COLOR]
                                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]page[COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uPage[/COLOR][COLOR= #007700]]),[/COLOR][COLOR= #DD0000]online[/COLOR][COLOR= #007700]) ==[/COLOR] TRUE[COLOR= #007700]){[/COLOR]                            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]WORKS[/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]WORKS NOT[/COLOR][COLOR= #007700];
                                                                 }
                                                                 .[/COLOR][COLOR= #DD0000]
">[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uPage[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</a></td></tr>[/COLOR][COLOR= #007700];
                        }
                }[/COLOR]
                [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$online_queryl[/COLOR][COLOR= #007700]))
                {[/COLOR]
                        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<tr><td style="width: 150px;"><em>Gast</em></td><td>[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uLast[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</td><td><a href="[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uPage[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]">[/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$online[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uPage[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</a></td></tr>[/COLOR][COLOR= #007700];
                }[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</table>[/COLOR][COLOR= #007700];
        }[/COLOR]
onder[COLOR= #007700]();[/COLOR]
?>
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
Erik, reageer dan niet yummie
Watnou, ik verbeterde hem. sadleyJe had een ( teveel. emo
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
@erik idd
maar werkt nog niet zie andere posthypocrite(klik)
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Erik schreef:
Eerdere citaten tonen
Luukvdo schreef:
Erik, reageer dan niet yummie
Watnou, ik verbeterde hem. sadleyJe had een ( teveel. emo
Ew, maak dat dan voortaan iets duidelijker
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
oftopic weg a.u.b.
en helpt me emo
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
B U M B
het werkt nog niet
zoals ik ergens tussen dit oftopic post
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Nielsie: zo offtopic was het nou ook weer niet maar heb het verwijderd.
En eigenlijk had ik je een warn kunnen geven voor bumpen dus let daar voortaan op aub?

En nu hopen dat iemand je alsnog kan helpen?
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
@marjolein okewink
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