Posts by Nycolas • 111 points
15 posts
-
0
votes2
answers37
viewsQ: loophole
I am trying to reduce the code js because I have 9 inputs of these, basically I want a way to automate the process, since the only things that changes in js and #input_titulo_imagem_1,…
javascriptasked Nycolas 111 -
0
votes1
answer46
viewsQ: Reduce PHP code
How could I use a repeat loop to reduce the amount of lines in that code or if there is some other way to reduce all this? <div class="form-group "> <input type="file" class="form-control…
-
0
votes1
answer17
viewsA: ajax is not sending input files
I ended up changing my code ajax and worked perfectly ` $("#formulario").submit(function() { var formData = new FormData(this); $.ajax({ url: window.location.pathname, type: 'POST', data: formData,…
-
1
votes1
answer17
viewsQ: ajax is not sending input files
ajax is not sending values when adding "arquivo1": arquivo1, //file imagem "arquivo2": arquivo2, //file imagem "arquivo3": arquivo3 //file imagem however if I remove the above code it sends the…
-
1
votes0
answers36
viewsQ: column cannot be null error when using multpart/form-data
if I use multpart/form-data in the FORM tag I can save the file but it does not save the file name in the database but if I take the Multipart/form-data does not send the file but saved in the…
-
1
votes2
answers72
viewsQ: Send several files in a form
how to make this code send more than one image in different inputs <form name="myForm" method="POST" action="back_img.php" enctype="multipart/form-data"> <input type="hidden" name="id"…
-
3
votes4
answers58
viewsQ: Repeat loop on id
As you can see in the code below, the only things that change is the number at the end of the id, example: (#slide_titulo1, #slide_titulo2...). I would like to know how to create a loop of…
javascriptasked Nycolas 111 -
0
votes0
answers42
viewsQ: How to Move Servo Motor Sg90
Like I would do where the print("RED"), print("GREEN") and print("BLUE") to move a servo motor at 180°, what happens is that the engine does not move, (I’m using Raspberry pi 3 b+). if r >= 50…
-
1
votes1
answer601
viewsQ: Tell what is the predominant color
Example: if the predominant color is a shade of red or red it appears a print saying it is red. the code works and returns a value in RGB, what I’m not getting and tell which is the predominant…
-
0
votes1
answer1110
viewsQ: Color detection and tell which color is appearing
How could it be done so that when the predominant color in the video appears a message telling which is the predominant color? Example: appears an object in the capture of red video there would…
-
1
votes1
answer30
viewsQ: Sum value of an array?
I’m not being able to show on the screen the sum of each line, the values are adding together with the other lines <!DOCTYPE html> <html lang=""> <head> <meta…
javascriptasked Nycolas 111 -
0
votes1
answer177
viewsQ: Check if file has already been copied
How to check the file formula.exe has already been copied to the directory c:\, and if it hasn’t been copied create a copy of it. #include <iostream> #include <Windows.h> #include…
-
0
votes1
answer31
viewsA: Strange character in place of the directory
#include <iostream> #include <Windows.h> #include <lmcons.h> #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string> using namespace…
-
1
votes1
answer31
viewsQ: Strange character in place of the directory
When I run this code in the place where it was supposed to appear the directory appears Ó²o formula.exe, someone could help me solve ? #include <iostream> #include <Windows.h> #include…
-
1
votes1
answer41
viewsQ: get directory
I would like to know how to add the name of the user where it is in quotes written "I must put the name of the user here" #include "stdafx.h" #include<iostream> #include<Windows.h>…