Ralphy Posted November 3, 2009 Share Posted November 3, 2009 Is this an id problem or is there something I am missing? I am trying to get it to delete a comment...On this 'delete.php' page, $prof is the user sending the delete request, on the page that I'm trying to delete from, $auth is the sender of the comment. $prof = new User($_GET['id']); $query = "UPDATE ProfileComments SET status = 'dead' WHERE id = '".$prof->id."' LIMIT 1"; $request = mysql_query($query,$connection); ?> should I replace a different variable in the query instead of '$prof->id' ? I am not getting any errors, and its not deleting the comment from my page or marking it in the db as dead thanks Link to comment https://forums.phpfreaks.com/topic/180155-is-this-an-id-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.