This is a classified ads table which contains all the item's information.
The item's "id" is received on this delete page using
. It's being sent by
A query takes place which grabs the image_name from the database based on the id. Then it unlinks the images in the image/ and image/thumbs folders with this image_name. So the id variable is working, at least to this point.
Then it is suppose to perform this delete query:
But this part is not working. Is there any obvious reason why?
The item's "id" is received on this delete page using
Code:
$id = $_GET["id"];
Code:
delete_picture.php?id=$id
Then it is suppose to perform this delete query:
Code:
$sql = "DELETE image_name,b_width,b_height,t_width,t_height FROM ads WHERE id='".$id."'"; $result = mysql_query($sql);
Comment