Jump to content

is this an id problem?


Ralphy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.