hi
there is a error here.. but i cant find the problem can anyone help me..?
this is the error line:
if(ereg("$topic_id([:digit:]+)", $topic_cookie_waarde) {
i can't find the error...
this is the part of the script
if($topic_cookie[$forum_id]) {
$topic_cookie_waarde = $topic_cookie[$forum_id];
$aantal = count($reply);
if(ereg("$topic_id\([:digit:]+\)", $topic_cookie_waarde) {
ereg_replace("^(.*)($topic_id)\([:digit:]+\))(.*)$", "\\1\\2($aantal)\\3", $topic_cookie_waarde);
} else {
$topic_cookie_waarde .= "-$topic_id($aantal)";
}
} else {
$topic_cookie_waarde = "$topic_id($aantal)";
}
$leeftijd = time() + 86400 * 40;
setcookie("topic_cookie[$forum_id]", $topic_cookie_waarde, $leeftijd);
thanx anyway
Derk
ps sorry for my bad english