Alright, I’ve been looking around and around, and I still haven’t found a way to get this to work.
[code=php]$sqldel = “DELETE * FROM `post` WHERE post_id = $row[‘post_id’]”;
Thats the original SQL statement to delete the post.
Now, this is the functionn I attempted to design in Ajax to get this to work, obviously it doesn’t. I’m gonna need the call statemnts and everything. I’m really no good at this whole thing, but I am attempting to learn it.
[code=php]error_reporting(E_ALL);
function Delete(what) {
$sqlDel=”delete from `post` where `ID`='” . what . “‘”;
mysql_query($sqlDel) or die(mysql_error());
echo . “Post ” . what . “deleted”;
}