Posts by Betinho Silva • 357 points
35 posts
-
-1
votes0
answers25
viewsQ: Delete PHP Record
Good morning, I need to delete a record and 2. Ex. I want to delete the record with ID 1 and the next 2 (2 and 3), how do I do this? I have only Cod to exclude the main (1) $stmt =…
-
0
votes1
answer40
viewsQ: Radio Button from Ajax does not work
Hello I have a radio button q comes from ajax for calculation of front not it not worked to take the . attr({disabled: true}) from a button. If I put it right on the page it works, but when it loads…
-
1
votes1
answer54
viewsQ: Return result in an input
Good afternoon, I need to return a result in an input. how do? HTML <div class="form-group"> <input class="form-control input-lg" type="text" name="cc-number" id="cc-number">…
-
2
votes1
answer131
viewsQ: Count quantity shopping cart
Good evening, I need to count the amount of products that are in the cart in the quantity field. I am using PHP PDO and MYSQL TABLE id | quantidade | produto 1 | 5 | 582 2 | 8 | 122 The total needs…
-
0
votes2
answers268
viewsQ: Return data via Ajax
Good morning everyone... I need a help... I need to return success or error values via ajax. But it is not returning anything. Follow the codes: HTML <div class="form-group col-md-4…
-
1
votes0
answers384
viewsQ: Search for Zip Code Band
Good afternoon, I need to get a zip code from the zip line registered in the bank... **banco de dados:** cep_id | cidade | cep_de | cep_ate 1 | jau | 10000000 | 15000000 $cep = "15086210"; $stmt =…
-
1
votes1
answer43
viewsQ: Change product color Mouseover
Good morning... I need a help and do not know how to do. I have an Ecommerce. On the initial page my products appear like this: I want, that as soon as the customer passes the mouse over the colors,…
-
1
votes0
answers67
viewsQ: PHP PDO Display a single record
Hello. I have a popup system where the client chooses which one will appear on the home. If one is already selected he cannot select another. You have to uncheck the asset and mark what it wants. I…
-
0
votes1
answer53
viewsQ: Verifies Registered User
I’m using this topic as an example of implementation. /a/76694 It works, gives me the message that there is already a registered email, BUT if I click register it registers anyway, ignoring the…
-
1
votes1
answer73
viewsQ: Produtos Relacionados
Good afternoon. How do I make the chosen product not appear in the related products? $stmtProdRel = $pdo->prepare("SELECT * FROM produtos as p WHERE p.produtos_situacao = 1 AND…
-
0
votes2
answers164
viewsQ: Show Json + Mysql + PHP Value
I need to do this, but coming from the database.... I don’t know how to do it... function decodificar($id) { if ($id == '1') { return json_encode( array( 'id' => '1', 'desc' => 'descricao do…
-
-4
votes1
answer237
viewsQ: Error saving to mysql
Good afternoon to all... I would like to know the reason for the error in the array below... This happens when I pass it to record in the database Array ( [arquivo] => Array ( [name] =>…
-
0
votes2
answers38
viewsQ: Help Foreach stdClass
Good morning :D I need a light! I need to take all 'ids' of users of a table and pass to another table, but when I give a foreach it returns me only 1 result as stdClass. Follows the code: $stmt =…
-
0
votes0
answers178
viewsQ: No refresh search by select
Good evening... I would like to know how to do a search through a select and of checkbox, as on the website of the webmotors... I looked on the Internet but found nothing like it... Someone knows…
-
3
votes1
answer152
viewsQ: Table Fipe Change year 3200
Hello... I have a system that pulls the information table fipe, but it pulls the year 2018 or 2019 as 3200 How to trade? This is the code that searches through a dynamic select $conectando = "SELECT…
-
1
votes1
answer62
viewsQ: Pass AJAX data
Good afternoon to all... I need to pass that information on "token", "<?php echo $tokenAnuncio; ?>", In this capacity: function load_image_data(){ $.ajax({ url:"/fetch.php", method:"POST",…
-
0
votes2
answers155
viewsQ: Reset Form after Upload
Good morning, I have a shipping form, but the data is in the inputs so I click to send... how to reset the Forms? Follow the code <?php header('Content-type: text/html; charset=utf-8');…
-
1
votes0
answers63
viewsQ: Resize image dynamically
On the website of the webmotors, the images are dynamically resized... link:…
-
0
votes0
answers80
viewsQ: UPDATE Mysql PHP
I have a website in 3 languages. PT-EN-ES. The customer always registers the information in PT first. After that add the other languages. DOUBT: In the control panel has the option to ADD these…
-
0
votes1
answer298
viewsQ: Record Mysql PHP Radio Button
I have a system in PHP, Javascript and MYSQL where the person assembles your request... Link to the website It’s working properly, but I need to pass data to a report and I don’t know how to do…
-
0
votes1
answer623
viewsQ: How to update multiple records at once? PHP+MYSQL
TABLE SIZE: ID | NOME | PRECO 1 | 06x08 | 0.00 2 | 08x10 | 0.00 3 | 09x12 | 0.00 4 | 11x14 | 0.00 5 | 13x18 | 0.00 6 | 18x24 | 0.00 I need to update the prices... how do I do it using UPDATE with…
-
2
votes3
answers1142
viewsQ: Remove whitespace when counting Javascript
I have that code: function contar() { var num_caracteres; num_caracteres = document.form1.txtTexto.value.length; document.getElementById("contador").innerHTML = num_caracteres;…
javascriptasked Betinho Silva 357 -
-1
votes1
answer389
viewsQ: Function count Javascript + PHP characters
I have this function that counts the characters and shows me the value: function calcular(el) { var valor = document.getElementById('valor'); var precoPorLetra = 10; var espacos = (el.value.split("…
-
1
votes0
answers84
viewsQ: Step by Step with javascript
I would like to know how to do a step-by-step in Javascript. This is the Model I need to mount a business card... I need to mount a photo to the grave... My model…
javascriptasked Betinho Silva 357 -
4
votes5
answers8294
viewsQ: Count characters while typing
I’m developing a sales website and it has a product Lettering and each letter costs R$10,00. How to calculate the value of a phrase the customer wants to buy? For example, if the customer wants to…
-
0
votes2
answers61
viewsQ: Total Input radio PHP
I have this site and I need to implement a sum with input[type=radio]. That’s the page where I do the sums This is the Javascript code that makes the sums. <script> function…
-
2
votes1
answer252
viewsQ: INNER JOIN and FOREACH
I need to show the color name of a table as a result of another. Code: <?php $sqlPint = mysql_query("SELECT * FROM cor_fundo AS c INNER JOIN produto AS p ON c.cor_fundo_id = p.produto_cor_fundo…
phpasked Betinho Silva 357 -
0
votes3
answers1285
viewsA: Return checkbox checked PHP
My code looks like this, but it’s not checking correctly. It’s checking the last 2 only, q has 4 colors <?php $sql = "SELECT * FROM cor_fundo"; $query = $pdo->prepare($sql);…
-
1
votes3
answers1285
viewsQ: Return checkbox checked PHP
I have this code: <?php $pdo = db_connect(); $sql = "SELECT * FROM cor_fundo"; $query = $pdo->prepare($sql); $query->execute(); $option = ""; $result =…
-
0
votes1
answer126
viewsQ: View Products Subcategory
I’m making a virtual store, but I’m not able to display the products of the subcategory on the page. Category products will be normal, but sub-category products will not. Follows the code: <?php…
phpasked Betinho Silva 357 -
0
votes2
answers303
viewsQ: Error number_format
Good evening, everyone. I have this function to convert the American value to Brazilian function Real($valor){ $valor_real = number_format($valor,2, ',', '.'); return $valor_real; } It works fine,…
phpasked Betinho Silva 357 -
2
votes1
answer689
viewsQ: Exchange point for comma in price
Good morning, I have this code to update the total. I need to exchange the .(dot) for ,(comma). How do I do? Code : <script type="text/javascript"> $(document).ready(function() {…
javascriptasked Betinho Silva 357 -
1
votes1
answer661
viewsQ: Javascript - formatMoney - How to use
How do I make my input stick to the decimals.... I need it to format at #total_buy follows code <script type="text/javascript"> $(document).ready(function() {…
javascriptasked Betinho Silva 357 -
0
votes0
answers28
viewsQ: PHP Language Comparison
I need to compare products in the table if the language esp and ing are filled... When I register the product it registers as the language 1(by). Then the customer has to register the 2(ing) and…
-
0
votes2
answers739
viewsQ: Check if the user is active in the database
I need to make a query if the user is active. Ex. I client log in to the panel, if my status is disabled, shows me a message, if my status is active log in to the page. follows my code <?php //…