Questions tagged as 'delete'

1
answer

What would be the @DELETE methods of a RESTfull java api?

I am using FullEntityRepository of deltaspike , Response has to be a status 204 if it works, and status 400 if it does not. Any tips? Layer service: @Transactional public void deletar(Integer id){ MotivoConc...
asked by 09.12.2017 / 16:06
0
answers

Error in webservice: javax.servlet.ServletException: java.lang.NullPointerException

I'm trying to run a query in my Webservice, but the function that the query is inside breaks nothing. My code: public boolean excluir(String usuario) { String sql = "DELETE * FROM listaproduto where uclogin=?"; Boolean retorno = fal...
asked by 27.09.2017 / 19:43
1
answer

Breakpoint in function SearchAppleApaga (Binary trees)

Good, I have an error in the SearchArvoreApaga function, when I try to delete a value from the binary tree nothing happens and if I try to delete the root of the tree I get the following breakpoint: Exception thrown: read access violation....
asked by 26.06.2017 / 18:16
0
answers

how to force the download of a file in php and delete it immediately

I made a file with the fopen () function; and it needs to be downloaded to the user's computer and deleted immediately, and the file name must be in a variable, as the file name will vary depending on the user.     
asked by 27.05.2017 / 22:18
1
answer

Erase some results from the array

I need to leave in the array below only the values Yes: 1 and 2 Any suggestion? I tried unset () but it did not work. array (size=3) 0 => array (size=4) 0 => string 'Adair' (length=26) 1 => string '498' (length=3)...
asked by 25.04.2017 / 02:42
1
answer

delete files from the table

I'm trying to delete an item from the table, but when I click it it does not delete.  It recognizes the id and everything else, but when I update the item it has not been deleted. <?php include_once("conexao.php"); if(! $conn ) {...
asked by 12.04.2017 / 14:49
1
answer

Delete records dynamically in SQL

I need to delete multiple table data in different SGDB types, but I do not know how to do this in a practical way. I need to keep 10 records in the tables and I need to delete all the remaining ones, but I can not do this with the command:...
asked by 11.01.2017 / 20:26
0
answers

Query with arrays not working PHP SQL

To edit a report, I need to get everything and turn it into an Array. I can not use UPDATE because the user can add more rows, having to add. In this way, I thought of first to delete the data that codeReport = '$ codeReport' and then give...
asked by 26.12.2016 / 16:15
1
answer

Delete file in use Delphi

Does anyone know if it is possible to delete a file in Delphi , using the DeleteFile function, when the file is open? Thank you in advance.     
asked by 10.03.2016 / 17:58
1
answer

I can not execute DELETE in SQL when submitting form via POST in PHP

I have this code and would like to delete a list of users when the form was submitted, but it is not working: Any tips? if (!empty($_POST['username']) && !empty($_POST['email'])) { $query = mysql_query('INSERT INTO users (name...
asked by 16.04.2014 / 18:02