Posts by Rodrigo Alves • 87 points
6 posts
-
0
votes1
answer1083
viewsQ: Remove white space php
When typing the values (one per line), for example: valor1 valor2 valor3 valor4 It will return: value1,value2,Valor3,value4 php input. <html> <body> <form action="junta.php"…
-
0
votes1
answer863
viewsQ: How to take the value of a php variable and use it in the ajax request
I am creating an order page with the code below, what I want is that when choosing the quantity of the product, it already appears the total value of product x quantity. If I set the value var…
-
0
votes1
answer341
viewsQ: How to get select to be populated based on the variable selected in another select
I need to make that after choosing the product, in the quantity select display a list with the values according to the available quantity, for example: if you have 10 pieces of a pants, display the…
-
1
votes4
answers882
viewsA: Update the data in the database without changing the others that already exist - PDO
I managed to leave the code like this: <?php try{ //Abre a conexão; include "conexao.php"; //Pega os dados do formulário; $id = $_POST['id']; $campos = array(); if(!empty($_POST['nome'])){ $nome…
-
4
votes4
answers882
viewsQ: Update the data in the database without changing the others that already exist - PDO
Hi, I’m trying to create a page to change the registration data with mysql database, but it should only update the data that are filled and not change the other data if it already exists in the…
-
3
votes2
answers57
viewsQ: How to keep the variable with the same value in the database?
I have a question in the code below: <?php include "conexao.php"; $id = $_POST["id"]; $nome = isset((trim(ucwords($_POST["nome"])))) : (trim(ucwords($_POST["nome"]))) : $apelido =…