<?php
require("mysql.php");
require("indstillinger.php");
if(is_array($HTTP_GET_VARS)) {
$start_nr = $HTTP_GET_VARS['start_nr'];
} elseif (is_array($_GET)) {
$start_nr = $_GET['start_nr'];
}
if(!$start_nr || $start_nr < 0) {
$start_nr = 0;
}
$sql = "select id, navn, epost, date_format(tid, '%e/%c %Y, %H:%i') as tiden, besked from sladder order by tid desc $start_nr, $antal_ad_gangen";
$taeller_sql = "select count(*) as antal from sladder_tagwall";
aabn_forbindelse_og_vaelgdb();
$resultat = sql_spoerg_og_faa_svar($sql);
$optaelling = sql_sporg_og_faa_svar($taeller_sql);
luk_forbindelse();
extract($optaelling[0]);
if($antal > (start_nr + $antal_ad_gangen)) {
$naeste_start_nr = $start_nr + $antal_ad_gangen;
$naeste_nav = "<a href=\\"$PHP_SELF?start_nr=$naeste_start_nr\\">Næste</a>";
} else {
$naeste_nav = "<span class=\\"doedt-link\\">Næste</span>";
if($start_nr > 0 && ($start_nr - $antal_ad_gangen) < $antal) {
$forrige_start_nr = $start_nr - $antal_ad_gangen;
$forrige_nav = "<a href=\\"$PHP_SELF?start_nr=$forrige_start_nr\\">Forrige</a>";
} else {
$forrige_nav = "<span class=\\"doedt-link\\">Forrige</span>";
}
if(count($resultat) < 1) {
echo "Der er ingen beskeder i tagwallen.";
} else {
for($i=0;$i<count($resultat);$i++) {
extract($resultat[$i]);
$besked = stripslashes($besked);
$navn = stripslashes($navn);
$epost = stripslashes($epost);
if($html_p != "t") {
$navn = htmlentities($navn);
$epost = htmlentities($epost);
$besked = htmlentities($besked);
}
$besked = nl2br($besked);
if(ereg("@", $epost)) {
$navn = "<a href=\\"mailto
epost\\">$navn</a>";
}
?>
den siger:
Parse error: parse error, unexpected $ in /customers/clan-furious.dk/clan-furious.dk/httpd.www/sladder2/sladder.php on line 51