Posts by Pedro Antônio • 228 points
13 posts
-
0
votes1
answer60
viewsA: Doubt SQL query via primary key in PHP?
Try: $sql = mysqli_query ($conexao, "SELECT * FROM loja where COD = {$buscar}");
-
2
votes1
answer433
viewsA: How to get specific information inside a Json with PHP?
In this case, you can use the variable that receives JSON, followed by the key you want to display. In your case: $json_str['buy']; If within the key "buy" there was another, just call it the same…
-
0
votes4
answers2194
viewsA: How to block the click on an input
"Disabled" can help you <input disabled id="txtData" class="form-control" /><span class="input-group-addon" data-role="data"><i class="glyphicon…
-
0
votes3
answers156
viewsA: Exit the loop suddenly
I decided as follows: function FazAlgoTrabalhoso(parametro1, parametro2, parametro3){ //Algo trabalhoso aqui var timer = window.setInterval(function(){ var pagina = $$('.page').data('page');…
-
2
votes3
answers156
viewsQ: Exit the loop suddenly
Let’s imagine the following code: function FazAlgoTrabalhoso(parametro1, parametro2, parametro3){ //Algo trabalhoso aqui } var i; for(i=0;i<=coisas.length;i++){ //"coisas" é um array já…
-
0
votes0
answers27
viewsQ: Load pins selectively via Mysql - Maps API
I have a question about loading pins from a Mysql database. Let’s say I have a database that stores multiple latitudes and longitudes and needs to load some pins from them, via the Gmaps API.…
-
0
votes1
answer484
viewsQ: Remove element within iframe
Hello I have an Iframe that has an image and would like to remove it, but it’s not working... <script> $( document).ready(function() {…
-
0
votes1
answer64
viewsQ: QUERY_ID_INVALID - Telegram inline bot
Hello I’m creating an inline bot for Telegram, but I always come across the error QUERY_ID_INVALID. I don’t know where I’m going wrong... $json = file_get_contents("php://input"); $dados =…
phpasked Pedro Antônio 228 -
1
votes0
answers51
viewsQ: Enviar app para aprovação - Facebook Messenger Platform
Hello I’m trying to send a Facebook app for approval, but I’m not getting any success. In the "App Details" tab, I click on edit notes and fill in all fields, but the "send" button is still…
facebookasked Pedro Antônio 228 -
0
votes2
answers303
viewsQ: Property of a method in another method
I have been researching about the problem, but I couldn’t solve it. I’m starting with object-oriented PHP and I’m having a question class Correios{ public $nome_do_user; public function…
-
1
votes2
answers70
viewsA: The inclusion of data is not occurring in the database, and the connection and variable is arriving in the function
Hello I tested it with Raul Fernando’s code and it worked normal. Make sure your database is properly created and the tables match your code. Tested in PHP 7.
-
2
votes2
answers1196
viewsQ: Curl, SSL and Security
Hello I have a little doubt about CURL and SSL. I have seen that it is unsafe to put false in CURLOPT_SSL_VERIFYPEER, because it would make CURL not check SSL, enabling data interception. But I…
-
2
votes1
answer54
viewsA: Get part of a website
It is possible with the following code: <?php $url = "http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=M249%20|%20Contrast%20Spray%20(Field-Tested)";…
phpanswered Pedro Antônio 228