I am making a blogging system and I finally got the blog to show and post entrys. Now I need the ability to edit and delete them without using phpmyadmin.

Here is what I want: User clicks on edit entry. php grabs all the entrys from the database and displays there names as hyperlinks. A user clicks on the entry name and can edit or delete it from there and submit the changes to the db. So far this all I came up with:

PHP Code:
<?
//Lets open the session
session_start();
?>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<style>
A:link{color: #007751; text-decoration: none;}
A:visited{color: #007751; text-decoration: none;}
A:active{color: #007751; text-decoration: none;}
A:hover{color: #007751; text-decoration: underline;}

/* Classes */
body{background-color: #F1F1F1; font-family: Arial;
font-size: 13px; color: #000000;}
input{font-family: Arial; font-size: 9pt; color: 000000; }
textarea{font-family: Arial; font-size: 9pt; color: 000000; }

.titlebg{background-color: #E7EFDE; );
font-family: Arial; font-size: 13px; color: #000000;}

.windowbg{background-color: #C6DBAF; font-family: Arial; font-size: 13px; color: #000000;}
.windowbg2{background-color: #F1F1F1; font-family: Arial; font-size: 13px; color: #000000;}
.border{background-color: #94BD63;}
.smalltext{font-size: 11px;}
</style>
<title>
<?
//Get a MySQL connection and send a query for the blogs title
include '/home/adamb10/public_html/UltraBlog/Sources/mysqlconnect.php';
$result mysql_query('SELECT title FROM Userdata') or die("Error: ".mysql_error());
while (
$row mysql_fetch_assoc($result))
{
    echo 
$row['title'];
}
?>
</title>
</head>
<body>
<center><table width="80%" cellspacing="1" cellpadding="1" border="0" class="border">

<td class="windowbg2" colspan="4"><center><font size="3"><b>Welcome to <? include '/home/adamb10/public_html/UltraBlog/Sources/mysqlconnect.php';
$result mysql_query('SELECT title FROM Userdata') or die("Error: ".mysql_error());
while (
$row mysql_fetch_assoc($result))
{
    echo 
$row['title'];
}
?></b></font></center>
<tr>
<td class="titlebg" width="25%" onmouseover =" this.style.cursor = 'hand'; this.style.backgroundColor='#F1F1F1'" onmouseout  =" this.style.backgroundColor=''" onclick =" location.href = 'http://adamb10.com/UltraBlog/index.php"><center><a href="http://adamb10.com/UltraBlog/index.php">Home</a></center></td>
<?
//Is the user logged in?  If they are give them the right links if not lets give a blank screen to them
if($_SESSION['pass']){
echo 
"<td class=\"titlebg\" width=\"25%\" onmouseover =\" this.style.cursor = 'hand'; this.style.backgroundColor='#F1F1F1'\" onmouseout =\" this.style.backgroundColor=\''\" onclick =\" location.href = http://adamb10.com/UltraBlog/index.php?action=logout'\"><Center><a href=\"http://adamb10.com/UltraBlog/index.php?action=logout\">Logout</td>
<td class=\"titlebg\" width=\"25%\" onmouseover =\" this.style.cursor = 'hand'; this.style.backgroundColor='#F1F1F1'\" onmouseout =\" this.style.backgroundColor=\''\" onclick =\" location.href = http://adamb10.com/UltraBlog/index.php?action=acp'\"><Center><a href=\"http://adamb10.com/UltraBlog/index.php?action=acp\">Admin</Center></td>"
;
} else {
return(
'admin.php');
}
?>
<td class="titlebg" width="25%" onmouseover =" this.style.cursor = 'hand'; this.style.backgroundColor='#F1F1F1'" onmouseout  =" this.style.backgroundColor=''" onclick =" location.href = http://adamb10.com/UltraBlog/index.php?action=about"><center><a href="http://adamb10.com/UltraBlog/index.php?action=about">About Owner</a></center></td></table>

<------HEADER------>
<br><br><br><br><br><br>
<table width="80%" cellspacing="1" cellpadding="1" border="0" class="border">
<tr>
<td class="windowbg" width="100%"><right>
<b>Edit Entry - Edit entrys here.</b> </right></tr>
<tr>
<td class="titlebg" width="100%">
<?
//Lets open up a MySQL connection!  MySQL is coolio
include '/home/adamb10/public_html/UltraBlog/Sources/mysqlconnect.php';
//Lets slect all the info from the table and put it in a neat tidy variable
$sql '
  SELECT entrys.Id, entrys.Date, entrys.Title, entrys.Entries, Userdata.Email
  FROM entrys
     LEFT JOIN Userdata ON (entrys.UserID = Userdata.Id)
  ORDER BY Date DESC'
;

$result1 mysql_query($sql) or die(mysql_error());
while(
$blog mysql_fetch_array($result1)){
//Time to assign variables
 
$date  $blog['Date'];
 
$title $blog['Title'];
 
$entry $blog['Entries'];
//Ready for a rousing game of genenerate urls?
if($page=="entry"){
include 
'editentry2.php';
} else {
echo 
'<a href ="http://adamb10.com/UltraBlog/index.php?action=editentry&entry=$entry">faf</a>';
}}
?>
</tr>
</table>
<br>
<------FOOTER------>
<br><br><br><br><br><br><br>
<? include '/home/adamb10/public_html/UltraBlog/copyright.html'?>
</body>
</html>
Any help on achieving my goal is greatly thanked.

Thanks,

Adam