Questions tagged as 'crud'

1
answer

Photo upload with Model name in Django

I would like help with a task saving images with a custom name and a folder also with the current name, suppose the following Model: class ProdutoA(models.Model): nome_produto_a = models.CharField(max_length=50, verbose_name='Nome do Produ...
asked by 11.05.2018 / 18:04
2
answers

SQLSTATE [HY093]: Invalid parameter number problem in insert

I need to insert the following data through a form: TITLE DESCRIPTION PRICE HTML: <?php session_start(); session_destroy(); ?> <html> <head> <meta charset="UTF-8"> <title></title> &l...
asked by 17.05.2015 / 10:12
1
answer

Delete from localStorage

I'm a beginner in the js area and I'm developing a code that stores the data in a table and saves it to the localStorage, so when I click the delete button that appears in this table, the line is cleared from my screen and the localStorage Also,...
asked by 30.03.2018 / 07:37
2
answers

SQLSTATE [HY093]: Invalid parameter number problem in insert

I need to insert the following data through a form: TITLE DESCRIPTION PRICE HTML: <?php session_start(); session_destroy(); ?> <html> <head> <meta charset="UTF-8"> <title></title> &l...
asked by 17.05.2015 / 10:12
1
answer

Update validation on laravel

I have a problem to do validation in the update in Laravel. My Controller looks like this: public function editar(EspecieRequest $request, Especie $esp) { $especie = Especie::find($esp->id_especie); $valores = Request::all();...
asked by 15.11.2017 / 21:57
1
answer

Delete firebase log

Hello, I read the records from the firebase and insert them into an array of objects. The Json class has only the business fields and does not have the key field. To delete an evaluation record the best approach would be to change the Json class...
asked by 20.10.2017 / 22:47
0
answers

List data in an Activity

This is my first posting on the forum, I hope I am not inflicting any rules. I'm starting in Android programming, so I'm trying to develop a CRUD . So far I've done the registration and listing, but the latter insists on making the code even...
asked by 14.10.2017 / 15:22
0
answers

Return data from a function?

How do I get data from a function, in case I want to make a foreach of an sql query that is in a function: index.php <?php require_once "funcs/functions.php"; $userdata = get_user_data(); foreach ($userdata as $d) { $name...
asked by 27.08.2017 / 01:45
1
answer

Delete record button

I have a page that shows the registrations made in a form. When a registration is required to be deleted, I need to access phpMyAdmin, preventing anyone other than me from deleting the record. What I wanted: I wanted to make a button...
asked by 14.08.2017 / 19:48
1
answer

Error trying to insert into the database with Laravel

I'm using Laravel and I've been banging my head for a long time trying to figure out the cause of the following error when trying to insert :    (1/1) ErrorException   Illegal offset type       in HasAttributes.php (line 818)  ...
asked by 03.08.2017 / 02:29