Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Parse error: syntax error

0 views
Skip to first unread message

Katja L. S�borg

unread,
Nov 3, 2009, 7:02:15 AM11/3/09
to
Hey jeg har et problem med noget php kode


Parse error: syntax error, unexpected T_STRING in
******/wp-content/themes/tutorial/index.php on line 15


Her er line 14-16 i index
<div class="post_tag">
<?php the_time(�F dS, Y�); ?> <?php the_time(�h:i a�); ?>
<?php the_category(�, �); ?> <?php comments_popup_link(�No
Comments�, �1 Comment�, �% Comments�); ?>
</div> <!� close post tag �>


P� forh�nd tak

--
Vil du l�re at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- P�dagogiske tutorials p� dansk
- Kom godt i gang med koderne
KLIK HER! => http://www.html.dk/tutorials

Philip Nunnegaard

unread,
Nov 3, 2009, 7:16:19 AM11/3/09
to
Katja L. S�borg skrev:

> Parse error: syntax error, unexpected T_STRING in
> ******/wp-content/themes/tutorial/index.php on line 15

Det ligner Wordpress.

> <?php the_time(�F dS, Y�); ?> <?php the_time(�h:i a�); ?>
> <?php the_category(�, �); ?> <?php comments_popup_link(�No
> Comments�, �1 Comment�, �% Comments�); ?>

Hvad sker der hvis du retter the_time(�F dS, Y�)
til the_time('F dS, Y') ? (Og det samme med de andre "quotes" i samme linje)

Hos mig gav f.eks. echo date(�F dS, Y�); ogs� en "unexpected T_STRING",
mens den gav det rigtige output, da jeg rettede � og � til '.


--
Philip - http://www.chartbase.dk | http://www.hitsurf.dk

Katja L. S�borg

unread,
Nov 4, 2009, 4:53:42 AM11/4/09
to
Mange tak det hjalp.. Og ja det er wordpress
0 new messages