syntax error in php

Gestart doorJvdw19 reacties70 weergaven

20 berichten · pagina 2 van 2

Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Werkt niet...

//Edit:
Dit is de Php code...Wat is dan hier fout aan.

[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]
?>
je mag niet posten, log <a href="index.php?p=pagina/login">hier</a> in
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
Hier komt de tabel normaal...
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
0
Berichten
212
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
///////////////////// TEMPLATE Default /////////////////////
$template_active = <<

{title}

{short-story}

[com-link]reageer[/com-link]

Gepost door {author-name}

HTML;

$template_full = <<

{title}

{short-story}

Er is {comments-num} keer gereageerd

Gepost door {author-name}

HTML;

$template_comment = <<
by {author} @ {date}
{comment}
HTML;

$template_form = <<
if(!isset($_SESSION[id])){

Je bent niet ingelogt, log hier in

} else {
















Name:
E-mail: (optional)
Smile: {smilies}




Remember Me |
Forget Me

}
HTML;

$template_prev_next = <<[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]

HTML;
$template_comments_prev_next = <<[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]

HTML;
?>

Probeer dit eens
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Geprobeerd >>

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jvdw/domains/jvdw.one2xs.com/public_html/website2/cutenews/data/Default.tpl on line 52

Volgens mij ligt de fout aan
if(!isset($_SESSION[id])){
0
Berichten
212
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?PHP[/COLOR]
[COLOR= #FF8000]///////////////////// TEMPLATE Default /////////////////////[/COLOR]
[COLOR= #0000BB]$template_active[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]<<<HTML


<div class= "cadretop"><h4>{title}</h4>
</div>
<div class="cadrebg">
<div class="text">
{short-story}
<br><p align="right">[com-link]reageer[/com-link]<p><p align="left" style="margin-top: -26px;">Gepost door {author-name}<p>
</div>
</div>
<div class="cadrebot"><br />
</div>
</div>
<div class= "space"></div>
HTML[/COLOR][COLOR= #007700];[/COLOR]


[COLOR= #0000BB]$template_full[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]<<<HTML


<div class= "cadretop"><h4>{title}</h4>
</div>
<div class="cadrebg">
<div class="text">
{short-story}
<br><p align="right">Er is {comments-num} keer gereageerd<p><p align="left" style="margin-top: -26px;">Gepost door {author-name}<p>
</div>
</div>
<div class="cadrebot"><br />
</div>
</div>
<div class= "space"></div>
HTML[/COLOR][COLOR= #007700];[/COLOR]


[COLOR= #0000BB]$template_comment[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]<<<HTML
<div style="width: 400px; margin-bottom:20px;">

<div style="border-bottom:1px solid black;"> by <strong>{author}</strong> @ {date}</div>

<div style="padding:2px; background-color:#F9F9F9">{comment}</div>

</div>
HTML[/COLOR][COLOR= #007700];[/COLOR]


[COLOR= #0000BB]$template_form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]<<<HTML
eval("
if(!isset($_SESSION[id])){

Je bent niet ingelogt, log <a href="index.php?p=pagina/login">hier</a> in

} else {

<table border="0" width="370" cellspacing="0" cellpadding="0">
<tr>
<td width="60">Name:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type="text" name="mail"> (optional)</td>
</tr>
<tr>
<td>Smile:</td>
<td>{smilies}</td>
</tr>
<tr>
<td colspan="2">
<textarea cols="40" rows="6" id="commentsbox" name="comments"></textarea><br />
<input type="submit" name="submit" value="Add My Comment">
<input type="checkbox" name="CNremember" id="CNremember" value="1"><label for="CNremember"> Remember Me</label> |
<a href="javascript:CNforget();">Forget Me</a>
</td>
</tr>
</table>
}")
HTML[/COLOR][COLOR= #007700];[/COLOR]


[COLOR= #0000BB]$template_prev_next[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]<<<HTML
<p align="center">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p>
HTML[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$template_comments_prev_next[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]<<<HTML
<p align="center">[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]</p>
HTML[/COLOR][COLOR= #007700];[/COLOR]
?>


Probeer dit eens.
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee cry Ik geef 0.1 Punten die me kan helpensadley
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