Questions tagged as 'delete'

1
answer

Delete a row in DB

I'm having trouble with a small code with delete button. I've tried it in some ways but I have not been able to make the button with $deletar do the delete function. Following code shows each slide and wanted to delete button. <?p...
asked by 20.07.2017 / 13:46
0
answers

When making a DELETE request, the org.springframework.web.HttpRequestMethodNotSupportedException error is returned

When making a request to delete a user the following error is returned: { "timestamp": 1500142937327, "status": 405, "error": "Method Not Allowed", "exception": "org.springframework.web.HttpRequestMethodNotSupportedException",...
asked by 15.07.2017 / 20:30
0
answers

Slim return on the same page as a POST post

I'm sending a post request to a URL, but I need to return a message or alert to the same page whether the ID is already registered or not. I already have the query and method to do this, however I am not able to send the return to the same p...
asked by 12.05.2017 / 17:53
0
answers

Laravel request class rules validate delete

In Laravel 5.3 is there any way to use rules of classes request to not leave a record of the bank that has a relationship being deleted? Similar to the rule that does not let a record be inserted duplicate.     
asked by 10.01.2017 / 19:32
0
answers

Deleting images with PHP [closed]

I'm working on a personal cloud for my girlfriend because her iCloud is full. Basically this is what is making everything work: <?php $dirname = "uploads/"; $images = glob($dirname."*.{jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF}", GLOB_BRACE); u...
asked by 01.08.2016 / 18:30
0
answers

DELETE android with Webservice URL does not work

I'm having a boring problem that I still can not solve and involves PHP and Android (more PHP actually). I am accessing a WebService in PHP that performs an operation according to each method requested by Android (for example: POST mak...
asked by 14.03.2016 / 15:27
1
answer

Unlink: Permission Denied - Trying to get property of non-object

Good afternoon guys, Recently I've been trying to do an image management where I need to use the unlink. Here is the full code for the function: $query_listaPic = "SELECT * FROM tbl_imagem WHERE tbl_produto_id = '$id'"; $listaPic = mysql_qu...
asked by 22.10.2015 / 17:54
1
answer

PHP unlink is doing delete to everything

I have this code: And I wanted to delete a file based on the directory address and file it is given, the problem is that it is deleting everything despite the argument (address) that only belongs to a file DB.php public function deleteFromF...
asked by 08.08.2014 / 14:57
1
answer

Erase older duplicate data in MS SQL server

I have a problem in a table that has duplicate data. The duplicate data is identified by an ID, where each line has the identifier and a date, how can I delete all the data with more than 1 record from the table, leave only the most recent recor...
asked by 04.02.2018 / 15:00
1
answer

Delete SQL record with dependency

Good afternoon. I would like to know how to exclude records from a table containing a foreign key. I would not like to delete child records (to keep history). I always get a message warning that there are dependencies when trying to upd...
asked by 31.01.2018 / 17:28