Questions tagged as 'php'

1
answer

Change cell color according to result?

I am a beginner in this universe, and I am caught up in my development in a simple function that I can not understand. This code below gets a value from the database, and I would like the background cell to change by value, for example if the fi...
asked by 16.01.2017 / 23:16
3
answers

Where in an array

I have the following Query: SELECT u.user_nome FROM tb_Usuario u WHERE u.user_ativo = 1 I need one more clause where where it compares a id of the user. However, I get this id through array , how do I make that...
asked by 08.11.2016 / 18:31
3
answers

Update in two columns, two tables

I have to update two columns in separate tables, but I do not know the commands very well, I would not like to use triggers. Will be updated around 100 records. Here is an example: Table a id nomes nota 1 SOen etc1...
asked by 15.06.2014 / 00:25
2
answers

Generate Signature Pagseguro API

Well, I need to generate a subscription via the pagseguro API, the user should be redirected to the pagseguro page and when I return to my page, this should be via API. I've tried through XML, with the codes: $url = "https://ws.sandbox.pags...
asked by 28.07.2016 / 22:42
1
answer

UDP destination address and ports do not appear

I'm creating a page that tracks UDP packet traffic on my machine with PHP . My intention was to get the list like this: ____________________________________________________________________________ | Proto | Endereço local |...
asked by 29.07.2016 / 17:27
2
answers

cURL - Consuming webservice with PHP

I have the following code: $url_data = "http://localhost:8080/sistema/webservice/agenda/consultarHorariosDisponiveis"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); curl_seto...
asked by 19.07.2016 / 14:37
1
answer

Submit form to a php script and open a modal once it is submitted

I have a form that already does the validation of the fields, but I wanted that when I clicked the send button it sent the data to the file recebe.php and already opened a modal that I created. Here is the code for my form: <form...
asked by 23.07.2016 / 17:49
2
answers

Update HTML Table with PHP

I have a page that is giving select in php in a Firebird database and returning the result in table form. My interest is to update the prices of a table to quote price, how do I click on the cell and update the price and send it to the bank o...
asked by 27.07.2016 / 21:12
1
answer

Query to sort by two dates Mysql

I have my table tbl_noticias with two dates of type date : data_criacao_noticia and data_atualizada_noticia . The purpose is for the listing to be sorted as follows: If data_atualizada_noticia is different...
asked by 26.01.2015 / 19:00
1
answer

How to display multiple values of a JSON in PHP

How can I display all the values of a JSON in PHP ?? I'll give you an example, I use the Code below to request the JSON $json_file = file_get_contents("http://backpack.tf/api/IGetUsers/v3/?steamids=76561198012598620"); $json_str = j...
asked by 04.02.2015 / 19:00