showpost.php
<?PHP
$data = file('news.txt');
$data = array_reverse($data);
foreach($data as $element) {
$element = trim($element);
$pieces = explode("|", $element);
echo "<table Align=/"center/" border=/"0/" cellspacing=/"0/" cellpadding=/"0/"><tr><td><div align=/"left/"><img src=/"picture" . $pieces[3] . ".jpg/" width=/"133/" height=/"99/"></div></td><td><p align=/"left/"><span style=/"height: 18; font-family: verdana; color: #000000; filter: glow(color=red, strength=1);/">Overskrift:</span>" . $pieces[4] . "<span style=/"height: 18; font-family: verdana; color: #000000; filter: glow(color=red, strength=1);/">Dato:</span>" . $pieces[0] . "<span style=/"height: 18; font-family: verdana; color: #000000; filter: glow(color=red, strength=1);/">Postet af:" . $pieces[1] . "". $pieces[2] .</span></td></tr><table>
}
?>
<style Type="Text/css">
body{Background-color:#FFFFFF;}
</style>
den siger fejl i linie 7 og det er i echo 'en hvis det hjælper
//ETA aka Emil Thor Andersen
Http://www.eta-wall.tk/
<?PHP
$data = file('news.txt');
$data = array_reverse($data);
foreach($data as $element) {
$element = trim($element);
$pieces = explode("|", $element);
echo "<table Align=\\"center\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\"><tr><td><div align=\\"left\\"><img src=\\"picture" . $pieces[3] . ".jpg\\" width=\\"133\\" height=\\"99\\"></div></td><td><p align=\\"left\\"><span style=\\"height: 18; font-family: verdana; color: #000000; filter: glow(color=red, strength=1);\\">Overskrift:</span>" . $pieces[4] . "<span style=\\"height: 18; font-family: verdana; color: #000000; filter: glow(color=red, strength=1);\\">Dato:</span>" . $pieces[0] . "<span style=\\"height: 18; font-family: verdana; color: #000000; filter: glow(color=red, strength=1);\\">Postet af:" . $pieces[1] . "". $pieces[2] .</span></td></tr><table>
}
?>
<style Type="Text/css">
body{Background-color:#FFFFFF;}
</style>
Husk \\" istedet for /"
Hilsen Mathias
det virker ikke ?
den siger denne her error
Parse error: parse error in /web/www/frac/users/drb/news/showpost.php on line 7
jeg er ikke helt inde i det her php ting håber jeg får det lavet
//ETA aka Emil Thor Andersen
Http://www.eta-wall.tk/