Guys i have the following problem.
I made 2 buttons below each entry.
Working & Not Working.
When working button is clicked,a file named wknwk.html is saved in the place for current entry.But instead of that it saves the wknwk.html file in last 5 entries. Here some code

Code: 
$admin = $_SESSION[ fulladmin ];
if ($admin == yes ) {
$str = $str . '<form method="POST">
<input class=submit type="submit" name="z3" value="Working">
<input class=submit type="submit" name="z3" value="Not Working">
</form>'
;}
if(isset($_POST['z3']))
{    $wknwk   = $_POST['z3'];
	if ($wknwk=="Working"){$wknwk="Last checked : <font color=green>" . date("d/m/Y") . "</font>";}
	else {$wknwk="<font color=red>Dead link/s !</font>";}
}
$myfile = $comment_trackback_base.'wknwk.html';
$fh = fopen($myfile, 'w') or die("Having problems right now...");
fwrite($fh, $wknwk);
fclose($fh);
The bolded code is the path for saving that wknwk.html file,which is equal to...
Code: 
 $comment_trackback_base = CONTENT_DIR.$y.'/'.$m.'/'.$entry.'/';
So from here comes the problem,but i don't know how to solve it.

Thanks.

I need explode or something ?
Porsche_maniak Reviewed by Porsche_maniak on . One source var - how to split? Guys i have the following problem. I made 2 buttons below each entry. Working & Not Working. When working button is clicked,a file named wknwk.html is saved in the place for current entry.But instead of that it saves the wknwk.html file in last 5 entries. Here some code $admin = $_SESSION; if ($admin == yes ) { $str = $str . '<form method="POST"> <input class=submit type="submit" name="z3" value="Working"> <input class=submit type="submit" name="z3" value="Not Working"> Rating: 5