Posts by Bruno Oliveira • 87 points
12 posts
-
0
votes1
answer2362
viewsQ: Request Curl Post with PHP
How do I request in PHP? curl -X POST "http://api.urlapi.com.br" -H "accept: application/json" -H "Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d "{…
-
3
votes1
answer148
viewsQ: PHP date function is returning the day in place of the month
I need to format the date received from a $_POST as follows: date('Y-m-d', strtotime($_POST['data'])); ///O POST está enviando 10/05/2019 << Dia/Mês/Ano. But the return of that function was…
-
2
votes1
answer164
viewsQ: How to send JSON as a response to the post
I have page A with the following code to send a POST to page B: function curlPost($url, $dados) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl,…
-
0
votes1
answer1157
viewsQ: How to Instantiate a PHP Class
Usually to instantiate and use a class in my project, I use: include ('arquivo_que_contem_a_classe.php'); $obj = new obj(); $obj->nomedafunction(); But today I needed a ready-made class…
-
0
votes1
answer610
viewsQ: Pass json parameters with php
I’m trying to make an integration with Paseguro that asks to send some data to a URL with the Header = 'Accept:application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1', 'Content-Type:…
-
3
votes2
answers2411
viewsQ: How to find source URL
I need a function that shows me the visitor’s origin url of my page. I have tried $_SERVER['HTTP_REFERER'], but it only seems to work when the source comes from a clicked link. Currently I work with…
-
2
votes1
answer92
viewsQ: Disable javascript unchecked checkbox
I need to disable all checkboxes that are not selected/marked. I tried with the following code: $('input[type=checkbox]').change(function(){ if($(this).prop("checked", false)){…
javascriptasked Bruno Oliveira 87 -
2
votes2
answers631
viewsQ: Update div with checkbox value marked
I have these checkboxes on my page <input type="checkbox" name="dezenas[]" value="01" /> <input type="checkbox" name="dezenas[]" value="02" /> <input type="checkbox" name="dezenas[]"…
-
0
votes1
answer108
viewsQ: Send post with multiple values through Jquery
I have this Jquery code to send a Post. var formTest = document.createElement('form'); formTest.setAttribute("method", "post"); formTest.setAttribute("action", ""); var post =…
-
0
votes1
answer64
viewsQ: Send Post with form data through Jquery
I want to create a function that moves all selected records from one table to another. The user selects multiple records in a list, clicks the move button, at that point the system opens the form…
-
1
votes2
answers2773
viewsQ: consult record between two dates in mysql
I am trying to make a query in Mysql as follows: SELECT * FROM `tabela` WHERE `data` >= '2017-03-01' AND `data` <='2017-03-05') The issue is that even having several records of the day…
-
2
votes1
answer475
viewsQ: Laravel 5.2 - How to view @foreach in View, only logs referring to the authenticated user?
I have a record table with a field id_user, this table has data entered by some system user. I need that when the user authenticates in the system, only see the records that he created. That is, the…
laravel-5asked Bruno Oliveira 87