Witam, dostalem od znajomego skrypt do gry na newsy wszystko pieknie ladnie ale na glownej stronie ich nie wyswietla mianowicie, mam taki blad:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\Freia\index.php on line 20
Linia 20 z pliku index.php to jest ta:
echo "<div class='entry-meta'>Posted on ";echo
".date('F j, Y',$row['date']).";
a tutaj caly plik index.php:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<link rel="stylesheet" type="text/css" href="news/news.css" />
<h1>News</h1>
<?php
$query = "SELECT * FROM znote_news order by date DESC";
$result = mysql_query($query) or
die('Something went wrong. Please try again later');
echo "There are no articles yet."; if (is_admin($user_data)) {
echo " <a href='./admin-newnews.php'>Create a new article</a>"; }
}
echo "<h2>".$row['title']."</h2>"; echo "<div class='entry-meta'>Posted on ";echo
".date('F j, Y',$row['date']).";
if(!empty($row['author'])){ echo ' by ".$row['author
']."</div>'; }else{
}
echo "<div class="entry
-content
">";
?>
<?php include "layout/overall/footer.php"; ?>
Prosze o pomoc bo juz siedze 6 godzin i nie mogę sie z tymi bledami uporac.