Posts by Walter Felipe • 122 points
15 posts
-
0
votes1
answer102
viewsQ: How to correctly check the status of a Checkbox in js?
I need a feature where Checkbox are nestling together. In this way, the parent element would select all children and so on. My logic was this: As I will receive this data externally, I can…
-
0
votes1
answer238
viewsA: Toast exhibition
One solution would be to take these erros and send to the log, That way you’d know which images went wrong. I believe this function loading() execute n times according to the number of images you…
-
0
votes1
answer75
viewsA: Getting Started in Programming
Your CMD is just running what is being ordered and closing the application as soon as it finishes reading the information. Basically he doesn’t know that it should remain open for you to read the…
-
0
votes1
answer493
viewsQ: How to make the backend communicate with the socket.io server
I’m studying about socket. and I have a problem with the backend. I am developing a system that searches for files with certain extensions and shows them on a real-time screen. To solve this I…
-
0
votes1
answer64
viewsQ: How to create PHP overload via variadic-Function?
This is my problem : for the sake of debug I decided to create a function that would return me a print_r formatted without the need for a gambiarra (that is, without creating the…
-
0
votes1
answer64
viewsA: How to create PHP overload via variadic-Function?
Behold, I find my answer : variadic-function. Basically, the PHP has a feature in which I do not delimit the number of parameters within my function. This makes it possible for me to put a different…
-
1
votes1
answer346
viewsQ: Create a preview of an XML file with Codeigniter
I am creating a stock input/output system using an XML file For this, I need to create a preview of the XML content that the user is uploading (as a table, just for the person to know if it is that…
-
1
votes1
answer396
viewsQ: How to organize an array by size automatically?
I was looking to create a ranking system. For this I thought to put all the values within one Array and then through a function arrange it from the largest to the smallest. However, each time I make…
-
0
votes1
answer1355
viewsQ: Error 1005 : Mysql - does not create foreign key
I have a problem with Mariadb. I created two tables tbl_estoque and tbl_adiciona. Basically, I don’t want to add data directly to tbl_estoque. I want by means of a trigger, he checks the latest…
-
0
votes3
answers1358
viewsA: Problems adding Foreign key to Mysql
Ever tried to add a constraint? Constraints are basically rules you put in a table, like Primary Key, Unique, Foreign Key, etc.. The syntax for foreign key would be something like: alter table…
-
2
votes1
answer229
viewsA: Doubts about Stored Function
Basic syntax of a Mysql Function : delimiter $ CREATE FUNCTION nome_da_funcao (parametros) RETURNS INT -- pode retornar qualquer tipo de dado BEGIN -- codigo return valor; END$ delimiter; The…
-
1
votes2
answers62
viewsA: Perform function at each given time period
I thought something like a counter, and putting the time according to the value that the variable a undergoes an increment. The functionsleep(); works basically like a timer, so this function does a…
-
1
votes2
answers3720
viewsA: How to align radio button and label with Bootstrap 3.x?
To edit anything in bootstrap I usually create an external css file and declare it after the bootstrap.min.css, would look something like: <head> <link rel="stylesheet"…
-
1
votes1
answer173
viewsA: How to return values from two distinct php tables
Are the two tables related? If so, how cod_usuario. I believe that it is not possible to make one select with inner setting 2 different types of values for the same field. In this case I would…
-
1
votes0
answers334
viewsQ: Error 1452 mysql: foreign key error
I created two product tables to tbl_produto and the tbl_adiciona, so instead of every time I want to update the stock, I don’t have two equal data in the product table, but in an outside table.…