Posts by olifreitas • 77 points
14 posts
-
-2
votes1
answer300
viewsQ: Foreach group values
I have the following code foreach ($_POST['codmunicipio'] as $key => $valor2) { $codmunicipio = $valor2; $valor_ipl3_f = $_POST['IPL3_valor_F']; $valor_ipl3_j = $_POST['IPL3_valor_J']; $sql3 =…
-
0
votes2
answers137
viewsQ: Problem sending input value (which is updated in a While) to another page via POST
I have a looping loop while which creates fields according to the number of customer municipalities. I need to pass the variable codmunicipio via method POST to be inserted into the database on…
-
0
votes1
answer51
viewsQ: Bootstrap problem with Javascript
I have an HTML code that when entering the class form-control in input, my Javascript function does not work. So my sum function doesn’t work: <div class="container"> <div class="row">…
-
0
votes0
answers255
viewsQ: Calling data from a form on the same HTML page
I want to call data already inserted in a form and use them on the same page HTML in which I will use them in a consultation SQL. Because depending on the number of municipalities will be generated…
-
2
votes3
answers4833
viewsQ: Decrease size Bootstrap field
I want to reduce the size of the field but I’m not getting any help? follows a print <div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback"> <div class="container"> <div…
-
0
votes2
answers1444
viewsQ: SQL query taking dynamic Javascript field
You could make an sql query by picking a field typed by the user in a form and automatically filling in the result in other fields?
-
1
votes3
answers533
viewsQ: Update button using jQuery
I want to update two fields in the database but without having to update the page but I’m having trouble implementing something like this. That when I click the button UPDATE the fields Phone and…
-
-1
votes5
answers2297
viewsQ: Store IF output in a variable to use later
This code is in error when I call the variable $os: $os = (if($status_os_cliente == "A"){ echo "SIM"; } else{ echo "NÃO"; });
-
0
votes1
answer248
viewsQ: Countdown
Good afternoon, I want to add on my page a countdown, which at the end only emits a warning saying that the time has expired. Is it possible to do this with html? I have no idea.
-
1
votes2
answers151
viewsQ: Validation PHP numeric field
I have the following function: function valida_valor2($str) { $count = strlen($str); if (($count > 19) OR (!is_numeric($str))) { return "INVALIDO"; }else { return $str; } } When I call her in my…
phpasked olifreitas 77 -
0
votes1
answer590
viewsA: Generate . txt file with PHP with "til" (~) etc
I solved! The problem was to switch to mysqli_set_charset($connected, 'iso-8859-1'); in connection with the database! Basic and simple thing that took my time.
-
-1
votes1
answer590
viewsQ: Generate . txt file with PHP with "til" (~) etc
I am unable to generate a file . txt where the tilde and accents are printed correctly. I am using the fwrite. excerpt from the code: $arquivo = fopen('aaa.txt', 'w+'); $escrever = fwrite($arquivo,…
-
-1
votes2
answers521
viewsQ: Validation function gets number 0 or 1
I made a validation function to accept only 1 or 0, but either 1 or 0 are being interpreted as INVALID. Any suggestions as to what the mistake would be? function valida_variavel_zero_um($valor){…
phpasked olifreitas 77 -
0
votes1
answer52
viewsQ: Update variable in IF
Good morning, I am unable to update a variable within the IF structure and use it later in my code. Follows excerpt from my code: while ($dado_participante = mysqli_fetch_array($qry2)) { //REGISTRO…