Questions tagged as 'php'

3
answers

Problem with uploading large files in PHP

I already set my site's php settings to the upload limit size ( post_max_size and upload_max_filesize ). I put 1 Giga as a precaution for the tests. But when I try to upload a 30-megabyte file, the status bar shows the progress o...
asked by 19.12.2013 / 20:58
1
answer

Doubt with dynamic layouts

I often mount the views of the php applications I use with conditional operators. For example, user not logged in, except an initial variable in the session: $logado = FALSE; If the user is logged in, I assign TRUE and within the...
asked by 18.07.2014 / 18:51
1
answer

change page 10 query in 10 seconds

I have a page that lists all my events from the event table ( tbl_eventos ). I want to list all the events of the first week of the year, past 10 seconds, list all events in the second week of the year, and so on. In my events table I h...
asked by 10.02.2015 / 11:51
1
answer

Codeigniter know if the insert worked?

Using codeigniter how can I know if the insert into actually worked? $novo_usuario=$this->db->query("INSERT INTO usuario (nome, email) VALUES ('pessoa','[email protected]')"); Through the variable $novo_usuario how can I be sure...
asked by 09.02.2015 / 20:15
1
answer

How do you call these instructions in Wordpress?

How do you call the specific PHP instructions for Wordpress? Of type: bloginfo("url"); bloginfo("template_url"); get_bloginfo("description", "display"); I tried searching for features but that's not it!     
asked by 22.02.2015 / 15:55
2
answers

Calculate total days worked in a given month

I have a problem creating a system in PHP / MySQL. I have a form that I need to insert: Employee Name Date on duty Exit Date Usually something happens as in the example: the employee enters on 04/29/2014 and leaves on 03/05/2014. I ne...
asked by 14.05.2014 / 22:04
3
answers

Converting a datetime to text does not show the result

I have a date in this format: Quarta, 21 Maio, 2014 . To save this date in the database I'm converting it to datetime as follows: $f['data'] = $_POST['data']; $data = DateTime::createFromFormat('l, j F, Y', $f['data']); $data...
asked by 21.05.2014 / 21:11
1
answer

Validation jquery validate does not go away when I close the modal bootstrap

How do I validate jQuery validate messages when I close the modal Bootstrap? I have the following codes that run when I close the modal by clicking the Fechar button and when I click on the mask. When I reopen the modal Bootstrap t...
asked by 06.05.2014 / 21:10
2
answers

How to check if data already exists or has been left blank?

I was testing the site registrations I made, and I noticed that I was able to register the same username twice, even though I declared "UNIQUE" in the table. And another thing, I also noticed that although I left the fields obligatory, in cas...
asked by 13.10.2018 / 18:52
3
answers

How to get all information from $ _POST

I have an array sent by $ _POST: array(4) { ["gabarito"]=> string(1) "4" ["resposta1"]=> string(1) "A" ["resposta2"]=> string(1) "B" ["resposta3"]=> string(1) "A" } I need t...
asked by 09.10.2018 / 20:38