Posts by Yan Rodrigues • 51 points
6 posts
-
1
votes3
answers1001
viewsA: Take an input value without Submit
You can capture the address value every time the radio changes and already change the value of href using jquery’s 'attr'. $('input[name=tipo]').change(function(){ var endereco =…
-
0
votes1
answer19
viewsA: mysqli_num_row error
In $pedidosq you are just adding a String to the variable, you need to run the query in the database to get the results and capture the amount of lines from the result. $pedidosq =…
mysqlianswered Yan Rodrigues 51 -
0
votes1
answer16
viewsA: Wrong current page tag in Bootstrap4 pagination
From what I understand the variable $page is being captured via GET as the current page, right? Assuming the get is being passed as ? id=45&pg=1, to page 1, in which case when $i is 1 it will…
-
0
votes2
answers37
viewsA: How to upload an image, but save it with the name based on customer data?
You can rename the image when moving it to the server. $temp = explode(".", $_FILES['Arquivo']['name']); //Usado para pegar a extensão da imagem $novo_nome = $_SESSION['CPF'].".".end($temp);…
-
0
votes2
answers225
viewsA: Keep while information in variable
Just concatenate the value of the variable with the string of the 'Hidden' button being used, once concatenated into the string, no matter if you change the value of the variable in another loop.…
-
1
votes1
answer46
viewsA: How to print the selected database ID?
You can send the ID value via a GET or POST. id = $_GET["id"]; $result_usuario = "SELECT * FROM cadastro WHERE id = '$id' LIMIT 1"; $resultado_usuario = mysqli_query($conn, $result_usuario);…