Questions tagged as 'php'

1
answer

How do I make the form alert correctly?

I have a contact form, so when it is populated it is not displaying the failed to send or successfully sent alert, it is redirecting to a search page, here my script: <form class="form-inline" action="<? $PHP_SELF; ?>" method="post"&g...
asked by 09.11.2017 / 13:46
1
answer

Google Chart's Line with While

Good afternoon,  I have the following query: SELECT DATE(o.data_fechamento) AS Data, u.nome AS Pessoa, COUNT(*) AS Total FROM ocorrencias AS o LEFT JOIN sistemas AS a ON a.sis_id = o.sistema LEFT JOIN localizacao AS l...
asked by 04.04.2017 / 20:55
2
answers

how to read return variables using json curl and php

My problem refers to the integration with the sky and I've rolled everything, but without success. I read this post: Request in Cielo's PHP API using cURL "I understood" what I said in the post and did so: <? //string json contendo...
asked by 27.05.2017 / 12:39
1
answer

How to check availability of domains (whois) with php?

How to check the availability of a national (.br) domain and / or others using PHP? Is there any php class ready for this?     
asked by 26.04.2017 / 05:40
3
answers

Notice: Array to String conversion in

I have a problem with the following code: <select name="tipoPessoa" class="form-control"> <?php $tipos = array("Pessoa Fisica","Pessoa Juridica"); $tipoSemEspaco = str_replace(" ","",$tipos); foreach ($ti...
asked by 13.03.2017 / 04:49
1
answer

Models in the MVC structure are only for database operations?

I've learned that "Whenever you think of data manipulation, think about model. It is responsible for reading and writing data, and also for validating it." Later on another person told me that models is exclusively for data processing, speci...
asked by 25.03.2017 / 00:01
1
answer

How do I know how much of the content was downloaded in an Ajax request?

I need to make that little animation, like on Youtube, of the progress bar that appears at the top. How do I know how much of the content has been downloaded, to have a basis for the progress bar? I did not want to do a "static" animation,...
asked by 22.03.2017 / 10:34
1
answer

Tracking and posting system (social network type)

I am developing a new project and I am creating a system of profile followers, in which the purpose is to show only the publications of whom I follow. Like for example the one of a social network. I follow the person, so I get the person's publ...
asked by 13.12.2014 / 19:59
1
answer

Format values from one array to another

I have a CSV which returns me the following array: Array ( [0] => Array ( [0] => ANO [1] => Sciences [2] => Mechanics [3] => Telecom ) [1] => Array...
asked by 20.03.2017 / 20:43
1
answer

File Download MySQL Blob

I need to download a .xls file that is in a MySQL database, but I need to save it with the original name. Can anyone help me? Uploading with you can be easy. I need to download it. include_once 'db.php'; $download = mysql_query("S...
asked by 05.12.2014 / 17:21