Posts by Nicholas Ruschel Krüger • 321 points
25 posts
-
-2
votes3
answers123
viewsQ: Format value for date
I need to format a value for date... I search for the link of the following value: 20181107 No case would be 07/11/2018, today. I need to take this value and format in format 2018-11-07, I tried it…
-
1
votes2
answers379
viewsQ: Select2 in multiple fields with the same name
I am making an order registration page, where you can register several products. To register the products users have the options to Produto, quantidade, valor, subtotal, if you want to add one more…
-
0
votes0
answers275
viewsQ: Read xml file without knowing tag name
Good morning my friend, I need to read an xml file (NF-e) where they have several items, but in each item there can be a different tag. In this case it would be in the tax tags, where the ICMS tag…
-
0
votes0
answers52
viewsQ: Add a zero when there is only 1 decimal
Good staff, I have a system for issuing electronic invoice, there is a government rule where the values of duplicates(installments) must possess exact 2 decimal places. I use number_format to…
-
-5
votes1
answer1111
viewsQ: Destroy Session when leaving the page
I have a system for registering budgets and I need that when the person closes the page, before, display a confirmation message, if they really want to leave the page. If she confirms, destroy the…
-
0
votes1
answer100
viewsQ: Add date in days until specific day of the week
I have a mission for you. I am developing a sales system for the company I work for. Some customers require billets to be issued maturing on specific days, Ex: The company Fulano LTDA requires that…
-
-3
votes2
answers76
viewsQ: Dismantle number with zeroes
I’d like to undo a number containing zeros and take the integer values. Example: 0002100042000560000000000000000000000000000000000000000000000000000000000000000000000000000000000000 I have that…
phpasked Nicholas Ruschel Krüger 321 -
2
votes0
answers529
viewsQ: Upload photo with HTML5 and PHP input camera
I’m using the new method of uploading photos where to use the phone he opens the camera and if using a computer he opens the files... but if I try to upload the photo by cell phone it just doesn’t…
-
0
votes1
answer240
viewsQ: Registering form data with inputs of equal PHP names
I find myself at: implement a form has several inputs with the same name I need to enter the data into the database I intend at the moment: create a record for each user of the platform the form has…
-
2
votes2
answers1045
viewsQ: Change input color according to value
Good afternoon Amigos I have an input with the name of MARGIN, where a value is displayed according to some calculations that are made... I need the input to change the color to red if this value is…
-
2
votes2
answers541
viewsQ: Cutting strings from right to left
I have a column in the database named after codigo, where the formatting is like this: 18000001 Where the 18 means the year we are and the 1 is the code of each result. Knowing that this code can be…
-
0
votes2
answers1123
viewsQ: Generate 8 digit sequential number
I need to generate an 8-digit sequential number following the bank.. I have the column code in the table budget, has the value of ex: 1800000001 where 18 is the year and the rest is a sequential…
phpasked Nicholas Ruschel Krüger 321 -
1
votes1
answer1060
viewsQ: Limit the number of pages in PHP MYSQL paging
I have a pagination in PHP and MYSQLI, and I would like the link of the pages below to be limited, for example: Pages: 1 2 3 4 5 (goes up to 100), appear only the first 5, if I have on page 10,…
-
0
votes0
answers39
viewsQ: Rotate image 360º in 3D
I work in a company that sells machines and parts for mills that produce rice, and I’m developing a system for selling parts for these machines... my boss wants each piece the customer can see from…
-
1
votes3
answers324
viewsQ: Add <option> automatically each month
I have a payment system, which has a select that displays the months since the system started, follow the code below: <select name="situacao"> <option>Fevereiro/2018</option>…
-
0
votes0
answers18
viewsQ: Two BD connections in a single file
Good afternoon guys, I wonder if there’s a way I can make two database confilations, in case I’m with the Dreamweaver connected to my online site and would like to follow with it on the localhost as…
-
4
votes2
answers1249
viewsQ: Shortening the names of people
I need a script that shortens people’s names. For example: Name: Fernando José Silva Machado With the script he cuts the surnames and leaves only the initials and the last surname It would look like…
phpasked Nicholas Ruschel Krüger 321 -
0
votes1
answer80
viewsQ: Delete result with JS and PHP
I have a js script to delete sql results with PHP and JS... LINK <a href="javascript:;" onClick="deletar(<?php echo $exibe['matricula']; ?>);"> JS function deletar(matricula) { if…
-
0
votes0
answers131
viewsQ: Take the value of a JS input to send to PHP file
I have a webcam script inside a form and I need that when I take the photo, it saves the file with the name typed in the input in the same form. This is the part of the webcam code where it sends a…
-
0
votes2
answers574
viewsA: How to catch the "name" in an HTML editor?
Complementing what the friend @Antharixbr said, you should use a textarea to use Ckeditor and use the instance to work. To retrieve the data from the textarea to send the form, the methods are: PHP…
-
2
votes2
answers84
viewsA: How do I disable the resizable area of a textbox?
Opa friend! You can "disable" this redeemable mode by limiting your textbox to the size you want, example: textarea {max-width:100px; max-height:100px;} I hope I’ve helped, any questions ask!…
-
0
votes1
answer15277
viewsA: How to move elements in HTML/CSS
Opa friend! I could not understand directly what you want to do but let the ideas... In your attempt to move 500px right, so that it works you can use some methods: .img{right: 500px; float:left;}…
-
1
votes1
answer543
viewsQ: Uncaught Typeerror: cadastro.fecha is not a Function at Htmldivelement.onclick
I’m having a problem with a script to close a "Box".. follow the codes below: register.php <form name="cadastro" action="" method="post"> <input type="hidden" name="acao"…
javascriptasked Nicholas Ruschel Krüger 321 -
0
votes1
answer740
viewsQ: Login with Javascript and PHP - Dando Reload sozinho
I have a PHP login system with JS that is giving me a little problem... When I click login, missing the password, not typing anything or typing, it returns me to a window warning if I missed the…
-
1
votes0
answers91
viewsQ: Fetch PHP data from Ajax
I have an Ajax script here that his function is as follows.. I have a news system, which by clicking on the title will open a modal and show me the news data (title, text, author).. but I don’t know…