Greets;
I have a flat file DB, as what i need is small and doesnt warrant an SQL db.
I have all my records displayed on a master page, all i want to do now is add a button to delete a record as it is clicked, any help wuld be appreciated.
This is the code to display the entries in my db,
<?PHP
$filename='biobedall.txt';
$task=$_POST['task'];
{
$lines = file($filename);
$shoutbox = implode("", $lines);
$posts = explode(";",$shoutbox);
foreach (array_reverse($posts) as $post)
{
$content = explode(", ", $post);
if ($content[1] != "")
{
echo "<b>".str_replace(":semicolon:", ";", str_replace(":comma:", ", ", $content[1]))." ";
echo str_replace(":semicolon:", ";", str_replace(":comma:", ", ", $content[0]))." </b>";
echo str_replace(":semicolon:", ";", str_replace(":comma:", ", ", $content[5]))."<br>";
echo str_replace(":semicolon:", ";", str_replace(":comma:", ", ", $content[4]))."<br>";
echo str_replace(":semicolon:", ";", str_replace(":comma:", ", ", $content[3]))."<br>";
echo "Added on: ".date('m/d/Y', $content[6])." "; [B][I]#here is where id like a link/button to delete a record as it appears[/I][/B]
}
}
}
?>
Thanks in advance
dan