Posts by igorarmelin • 155 points
21 posts
-
0
votes1
answer48
viewsQ: Duplicate records in the database table
I have the following model: function validarQuestionario() { if(is_array($this->input->post('resposta[]')) || is_object($this->input->post('resposta[]'))) { foreach…
-
0
votes0
answers23
viewsQ: How to send inputs to Controller with dynamic "name"? (Codeigniter)
I’m developing a quiz game, where the user has several input’s to fill. Only that I am not able to develop the logic to perform the comparison of the entered data with the database data. Follow the…
-
0
votes2
answers122
viewsA: Delete data from 3 different tables (Codeigniter)
I managed to solve, in the two tables 'daughters' I had to put the parameter 'on delete' in foreign keys. After that, I was able to delete the data from the 'parent' table'.
-
0
votes2
answers122
viewsQ: Delete data from 3 different tables (Codeigniter)
I am trying to delete photos from a view, however, I need to delete beyond the photo table the data from two more tables that are linked to this photo. The code with the delete function is as…
-
1
votes1
answer33
viewsQ: Create dynamic Divs (Codeigniter)
I need to create multiple Ivs inside a foreach in my view, so far so view: <?php echo form_open('admin/marcacao/registraMarcacoes'); ?> <div class="area-imagem"> <img src="<?=…
-
1
votes1
answer61
viewsQ: Add input field each time function is called
I have a module in a system to which I am developing, where, every click on insert, the user clicks on a photo and a marking is added on the exact location of the click. I need every click on the…
-
0
votes1
answer65
viewsQ: Retrieve inline CSS attributes with PHP
I have DIV’s that have dynamically generated CSS inline styles. Example: <div style="top: 275px; left: 563px;"></div> My doubt is the following, how can I recover these values "top" and…
-
2
votes1
answer44
viewsQ: Run function 1x per click (Javascript)
I have a button where his job is to mark one pixel on a div. However, after I click the button, in case I click several times on the image, it marks several pixels. How do I limit this marking to…
-
0
votes1
answer40
viewsQ: Sending an image from one page to another (Codeigniter)
I have a gallery of images loaded dynamically, where the user searches for the category and the system loads the relative images. Below each of the uploaded images has a button, which when clicked,…
-
0
votes1
answer54
viewsQ: Return data in a DIV (Codeigniter)
I have a view where her code is as follows:: <section> <h1 class="text-center">Marcação de Fotos</h1> <?php echo form_open('admin/exibe_fotos/index'); ?> <label…
-
0
votes0
answers98
viewsQ: Photo gallery by category (Codeigniter)
Here are the codes: VIEW: <div class="container"> <?php echo form_open_multipart('admin/exibe_fotos/index'); ?> <div class="form-group"> <label for="categoria">Selecione a…
-
0
votes1
answer146
viewsQ: Passing values from a Select Multiple to the bank (Codeigniter)
My view is like this: <div class="form-group"> <label for="categorias[]">Selecione a(s) categoria(s) referente(s) a foto:</label> <select name="categorias[]"…
-
0
votes1
answer60
viewsA: Notice Message: Undefined Index (Codeigniter)
I managed to solve, I will leave here what I did, in case someone goes through the same problem. My view was like this: <div class="form-group"> <label for="categorias[]">Selecione a(s)…
-
2
votes1
answer60
viewsQ: Notice Message: Undefined Index (Codeigniter)
I have a form where two multiple selects is loaded, here the code: <div class="form-group"> <label for="categorias[]">Selecione a(s) categoria(s) referente(s) a foto:</label>…
-
1
votes1
answer80
viewsQ: Why use a Select Multiple or Checkbox?
To recover multiple values selected by the user and write to a database, what would be the best use option? What are the differences between one form and another?
-
1
votes1
answer292
viewsQ: Display username logged in with Codeigniter
How do I display the username logged in to the system? The function that authenticates and creates the session is this: function verificar() { $this->load->model('tbdaluno'); $check =…
-
1
votes1
answer23
viewsQ: Link string inserted in a 'sub-category' field to a category
Good night. I have an input 'category', where the user selects the existing categories, and below a field 'subcategory', if the user wishes to register. In Mysql you already have the tables created,…
-
0
votes2
answers2327
viewsQ: Object vector in C++
How do I vector objects using c++? And how do I sort this array of objects, for example, using some sort algorithm (quicksort, mergesort, shellsort or radixsort)? #include <iostream> using…
-
0
votes2
answers38
viewsQ: C++ method assignment
#include <iostream> using namespace std; class Aluno{ public: string nome; int idade; float n1; float n2; float media(float n1, float n2); }; float Aluno::media(float n1, float n2){ return…
c++asked igorarmelin 155 -
5
votes4
answers4373
viewsQ: How to change Bootstrap 3 code?
Is it possible for me to edit some part of a Bootstrap CSS code? If so, how?
-
0
votes1
answer42
viewsQ: Error printing message inside condition
When I type any value other than 2 equal values, the "Invalid typed value!" message is displayed anyway. Anyone knows why? #include <stdio.h> #include <conio.h> int main(){ int x, y;…