Nyheds System
Hej jer alle sammen.Jeg er lidt ny til PHP med jeg her dette her nyheds system.
nyhed.php :
<?
include "config.php";
$nyt = mysql_query("SELECT * FROM nyt ORDER BY id DESC") or die(mysql_error());
while ($row = mysql_fetch_assoc($nyt)) {
echo "<h3>".$row["overskrift"]."</a></h3>";
echo "<img src="http://www.zinux.hotserv.dk/images/pic.gif" class="floatTL" alt="'.$row['overskrift'].'" />';
echo "<p>";
echo ".$row["text"].";
echo "</p>";
echo "<p>";
echo "<div class="post"><ul class="post_info">";
echo "<li class="date">";
echo ".$row["forfatter"]." "den" ".$row["dato"].";
echo "</div></div></div></p>';
}
}
?>
Jeg får denne fejl:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/hotserv.dk/users/zinux/blog/test/nyheder/index.php on line 8