wat doe ik fout

Gestart doorYaser9 reacties20 weergaven

10 berichten · pagina 1 van 1

Yaser

Lid · Topicstarter

Berichten
2.674
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]+[/COLOR][COLOR= #FF8000]############################################################################+
#============================================================================#
#= * iLLZONE Project - A virtual hotel site, management and Emulotor =#
#============================================================================#
##############################################################################
#============================================================================#
#= * Copyright (C) 2010 Lans/Lans11 of Otaku. All rights reserved. =#
#= * http://www.illzone.com =#
#= * Parts Copyright (C) 2010 Meth0d & Yifan Lu. All rights reserved. =#
#= * Copyright (C) 2010 Sulake Ltd. All rights reserved. =#
#============================================================================#
##############################################################################
#============================================================================#
#= * License: GNU Public License 3.0 =#
#= * http://opensource.org/licenses/gpl-license.php =#
#= * Twisted Project is Free Software. =#
#============================================================================#
############################################################################## 
#============================================================================#
#= * This program is free software: you can redistribute it and/or modify =#
#= it under the terms of the GNU General Public License as published by =#
#= the Free Software Foundation, either version 3 of the License, or =#
#= (at your option) any later version. =#
#= =#
#= * This program is distributed in the hope that it will be useful, =#
#= but WITHOUT ANY WARRANTY; without even the implied warranty of =#
#= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the =#
#= GNU General Public License for more details. =#
#= =#
#= * You should have received a copy of the GNU General Public License =#
#= along with this program. If not, see <http://www.gnu.org/licenses/> =# 
#============================================================================#[/COLOR]
[COLOR= #007700]+[/COLOR][COLOR= #FF8000]############################################################################+[/COLOR]

[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./includes/core.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./includes/session.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$data[/COLOR] [COLOR= #007700]= new[/COLOR] me_sql[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$lang[/COLOR][COLOR= #007700]->[/COLOR]addLocale[COLOR= #007700]([/COLOR][COLOR= #DD0000]"home.me"[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"staff"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"Staff"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bodyid[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"home"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cat[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"community"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./templates/community_header.php[/COLOR][COLOR= #007700]);[/COLOR]
?>




<div id="container">
<div id="content">

<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix pixellightblue">

<h2 class="title">
Kan ik Staff of Moderator worden?
</h2>
<div id="notfound-looking-for" class="box-content">
HabMoon Staff of Moderator worden is niet zo makkelijk. Je moet minimaal 14 jaar oud zijn en veel vrije tijd hebben om in HabMoon te besteden.
Als er vacatures open zijn wordt het vermeld in een nieuwsbericht op deze site.
</div>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(process-template)) { Rounder.init(); }</script>

<div class="habblet-container ">
<div class="cbb clearfix ">


<div id="notfound-looking-for" class="box-content">
<b>Hoe herken ik de staff?</b><br>
Een Hotelmanager kan je herkennen aan de gouden HabMoon Staff badge.<br> 
De Moderators hetzelfde, maar dan is het een zilveren HabMoon Staff badge.<br>
De eXperts vind je aan de X badge, duidelijk zichtbaar.<br><br>
Als je er niet helemaal zeker van bent, ga dan met je muis in het Hotel over de badge, en je ziet het vanzelf!
</div>


</div></div></div>


<div id="column1" class="column">
<script type="text/javascript">if (!$(document.body).hasClassName(process-template)) { Rounder.init(); }</script> 
<div class="habblet-container "> 
<div class="cbb clearfix pixeldarkblue ">

<h2 class="title">HabMoon Hotelmanagers</h2>


<div class="habblet box-content">


[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT
name,mission,rank,lastvisit,figure,id,hbirth
FROM
users
WHERE
rank = 7
ORDER BY
rank DESC"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/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/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700])) {[/COLOR]

[COLOR= #0000BB]$userid[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rank[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"7"[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$rank[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"<b/> Hotel Leader</b>"[/COLOR][COLOR= #007700];
}[/COLOR]




[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<p><img src=http://www.habbo.nl/habbo-imaging/avatarimage?figure="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]figure[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"&action=std,crr=667&gesture=sml&size=b&direction=2&head_direction=3 alt="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" align=left />
<b><a href=home/"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</a></b>&nbsp;<br />

<i>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]mission[/COLOR][COLOR= #007700]].[/COLOR]"[COLOR= #007700]<[/COLOR]/b[COLOR= #007700]><[/COLOR]/i[COLOR= #007700]><[/COLOR]br/[COLOR= #007700]>
<[/COLOR]/b[COLOR= #007700]>
<[/COLOR]br /[COLOR= #007700]><[/COLOR]br/[COLOR= #007700]>[/COLOR]

?>

</div>
</div>





























[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]templates/community_footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>


Ik krijg deze error:

Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in C:xampphtdocsstaff.php on line 163
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
error in lijn 163 maar het raarste is er is geen lijn 163 -.-

vervang deze

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]templates/community_footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>


eens naar

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"templates/community_footer.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>


anders zo

[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/require_once"]require_once[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"templates/community_footer.php"[/COLOR][COLOR= #007700]);[/COLOR] ?>
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je sluit je echo niet af.
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Alemaalte schreef:
Je sluit je echo niet af.
niet goed iig.
Volgens mij moet je een echo tussen doen en een url hoort tussen " en in dat het voorbeeld staat het precies andersom.

dus:

echo <p><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=.$row[figure].&action=std,crr=667&gesture=sml&size=b&direction=2&head_direction=3" alt=".$row[name]."  align="left" />
<b><a href="home/.$row[name].">.$row[name].</a></b>&nbsp;<br />
<i>.$row[mission].</i><br/><br/>;


*kan fout zijn hoor, ben ook niet zo goed met php wink
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ben je een retro aan het maken?
Dit is holoCMS

Maarja bovenin naast
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je kan " gebruiken maar ik zie hem nergen "; doen.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]+[/COLOR][COLOR= #FF8000]############################################################################+
#============================================================================#
#= * iLLZONE Project - A virtual hotel site, management and Emulotor =#
#============================================================================#
##############################################################################
#============================================================================#
#= * Copyright (C) 2010 Lans/Lans11 of Otaku. All rights reserved. =#
#= * http://www.illzone.com =#
#= * Parts Copyright (C) 2010 Meth0d & Yifan Lu. All rights reserved. =#
#= * Copyright (C) 2010 Sulake Ltd. All rights reserved. =#
#============================================================================#
##############################################################################
#============================================================================#
#= * License: GNU Public License 3.0 =#
#= * http://opensource.org/licenses/gpl-license.php =#
#= * Twisted Project is Free Software. =#
#============================================================================#
############################################################################## 
#============================================================================#
#= * This program is free software: you can redistribute it and/or modify =#
#= it under the terms of the GNU General Public License as published by =#
#= the Free Software Foundation, either version 3 of the License, or =#
#= (at your option) any later version. =#
#= =#
#= * This program is distributed in the hope that it will be useful, =#
#= but WITHOUT ANY WARRANTY; without even the implied warranty of =#
#= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the =#
#= GNU General Public License for more details. =#
#= =#
#= * You should have received a copy of the GNU General Public License =#
#= along with this program. If not, see <http://www.gnu.org/licenses/> =# 
#============================================================================#[/COLOR]
[COLOR= #007700]+[/COLOR][COLOR= #FF8000]############################################################################+[/COLOR]

[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./includes/core.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./includes/session.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$data[/COLOR] [COLOR= #007700]= new[/COLOR] me_sql[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$lang[/COLOR][COLOR= #007700]->[/COLOR]addLocale[COLOR= #007700]([/COLOR][COLOR= #DD0000]"home.me"[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"staff"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"Staff"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bodyid[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"home"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]cat[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]"community"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]./templates/community_header.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
<div id="container">
<div id="content">

<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix pixellightblue">

<h2 class="title">
Kan ik Staff of Moderator worden?
</h2>
<div id="notfound-looking-for" class="box-content">
HabMoon Staff of Moderator worden is niet zo makkelijk. Je moet minimaal 14 jaar oud zijn en veel vrije tijd hebben om in HabMoon te besteden.
Als er vacatures open zijn wordt het vermeld in een nieuwsbericht op deze site.
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(process-template)) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix ">
<div id="notfound-looking-for" class="box-content">
<b>Hoe herken ik de staff?</b><br>
Een Hotelmanager kan je herkennen aan de gouden HabMoon Staff badge.<br> 
De Moderators hetzelfde, maar dan is het een zilveren HabMoon Staff badge.<br>
De eXperts vind je aan de X badge, duidelijk zichtbaar.<br><br>
Als je er niet helemaal zeker van bent, ga dan met je muis in het Hotel over de badge, en je ziet het vanzelf!
</div>
</div></div></div>
<div id="column1" class="column">
<script type="text/javascript">if (!$(document.body).hasClassName(process-template)) { Rounder.init(); }</script> 
<div class="habblet-container "> 
<div class="cbb clearfix pixeldarkblue ">
<h2 class="title">HabMoon Hotelmanagers</h2>
<div class="habblet box-content">
[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT
name,mission,rank,lastvisit,figure,id,hbirth
FROM
users
WHERE
rank = 7
ORDER BY
rank DESC"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/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/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))
{[/COLOR]
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))
    {[/COLOR]
        [COLOR= #0000BB]$userid[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]];[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rank[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"7"[/COLOR][COLOR= #007700])
        {[/COLOR]
            [COLOR= #0000BB]$rank[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"<b/> Hotel Leader</b>"[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<p><img src=http://www.habbo.nl/habbo-imaging/avatarimage?figure="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]figure[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"&action=std,crr=667&gesture=sml&size=b&direction=2&head_direction=3 alt="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" align=left />
        <b><a href=home/"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</a></b>&nbsp;<br />
        <i>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]mission[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</b></i><br/>
        </b>
        <br /><br/>"[/COLOR][COLOR= #007700];
    }
}[/COLOR]
?>
</div>
</div>
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]templates/community_footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
Ben je een retro aan het maken?
Dit is holoCMS

Maarja bovenin naast
Is geen HoloCMS dat script ziet er beter uit yummieIk heb dat script ooit eens bestudeert
0
Yaser

Lid · Topicstarter

Berichten
2.674
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het doet er niet aan toe welke cms het is,
Maar het is al opgelost, kan slotje op.

edit: bedankt marjolein smile
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Graag gedaan smile
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